Link
CSSA link goes somewhere: another page, a hash, or an external URL. If the click stays on this page, use a button.
The element is an <a> with .k-link. It’s orange and underlined. Hover darkens it. Keep the underline. Color alone isn’t enough to mark a link.
There’s no disabled class. aria-disabled="true" when the destination is gone; the kit kills pointer events and the underline.
Classes
Section titled “Classes”| Class | Type | Description |
|---|---|---|
k-link | component | Goes on an a. Orange and underlined; keep the underline. There is no disabled class. Use aria-disabled="true". |
Examples
Section titled “Examples”Default
Section titled “Default”A text link. The href is yours.
<a class="k-link" href="/getting-started/">Read the guide</a>Accessibility
Section titled “Accessibility”Use a real <a> with an href. Color isn’t the only cue; the underline stays. aria-disabled="true" removes pointer events and the underline. Take it out of the tab order too, or explain nearby why it’s still sitting there.
Dos and don’ts
Section titled “Dos and don’ts”Do
- Use a real
<a>with anhref. - Keep the underline.
- Use a button for an action on this page.
Don’t
- Style a
spanordivas a link. - Drop the underline.
- Use a link as a button.