Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 892 Bytes

a11y-aria-label-is-well-formatted.md

File metadata and controls

39 lines (24 loc) · 892 Bytes

[aria-label] text should be formatted as you would visual text (github/a11y-aria-label-is-well-formatted)

💼 This rule is enabled in the ⚛️ react config.

Rule Details

[aria-label] content should be formatted in the same way you would visual text. Please use sentence case.

Do not connect the words like you would an ID. An aria-label is not an ID, and should be formatted as human-friendly text.

Resources

Examples

Incorrect code for this rule 👎

<a href="..." aria-label="learn more"></a>
<a href="..." aria-label="go-to-link"></a>

Correct code for this rule 👍

<a href="..." aria-label="Learn more"></a>
<a href="..." aria-label="Homepage"></a>

Version