Implementation requirements
Setting the muted property changes the visual presentation of the link to use a more subdued color. However, this visual change is not conveyed programmatically – so muted links will be announced the same way as regular links by screen readers.
Code Examples
Good example with descriptive text:
There are various plans available.<a href="..." aria-label="Learn more about GitHub pricing plans">Learn more</a>
Avoid this pattern:
<a href="..." aria-label="Learn more about keyboard shortcuts">Keyboard shortcuts</a> allow you to access common commands more quickly.
How to test links
Integration tests
- Activating a link changes the URL. It is not intended to be used as a trigger for an action.
- Where muted links are used, this visual presentation is not used as the only way to differentiate links
- The links have appropriately descriptive link text
Component tests
- Links are rendered as standard <a href="…"> … </a> links
- Content passed into the component is output as the link's visible text
Additional resources
Source code | Usage guidelines | Accessibility
Feedback
Help us improve this component by providing feedback, asking questions on Slack, or updating this file on GitHub.