Skip to content

Link

A link style with a clear underline, hover and a focus indicator. If the link should look like a button, use Button on the <a> element instead.

A disabled link has no href. aria-disabled="true" mutes the colour and turns off the mouse with pointer-events: none, but the keyboard follows href with Enter regardless. That is why it has to go.

Without href an <a> is not a link to the screen reader, and it is not in the tab order. role="link" and tabindex="0" give it both back, so screen readers find it and can say that it is unavailable. lt.link({ disabled: true }) gives all three.

lotek check reports an lt-link or lt-button with both aria-disabled="true" and href (the rule disabled-with-href).

ClassWhat it is
.lt-linkThe link. Visited and disabled are told apart by :visited and aria-disabled.

See Customising for how the layer works.

  • The link text should make sense read on its own. Screen readers can list every link on the page, and there “See the invoice for March” helps where “Click here” says nothing.
  • Do not remove outline on :focus-visible. It is the only thing keyboard users navigate by.
  • If the link opens in a new tab, say so in the text or with aria-label.