UI
Links
Dugout green text whose underline draws in on hover or focus.
In use
Toronto Blue Jays
The Blue Jays didn't make the playoffs.
Anatomy
- TextDugout green, Outfit at the size of the words around it, medium weight. No underline at rest.
- UnderlineA 1.5px line that draws in from the left on hover or keyboard focus.
States
LinkThe underline draws in on hover and focus.
When to use it
Use a link to go to another page, or for a quiet next step that reads as part of the text.
When not to use it
Don’t use a link for the action that finishes a panel; use a primary button.
Accessibility
Dugout green reaches 4.5:1 on every surface in both modes, so a link reads without its underline. The underline also shows on keyboard focus.
Tokens
In code: the link class in src/ds/components/LinkStyle/LinkStyle.module.css, used by NextSteps
| Token | What it sets |
|---|---|
--ds-brand | The colour. |
--ds-link-line | The underline's thickness. |
--ds-duration-link | How long the underline takes to draw in. |