You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/accessibility/aria-label-is-well-formatted.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,12 @@ Keep the following practices in mind:
11
11
- Do not use line-break characters like ` `. An accessible name should be concise to start with.
12
12
- Do not set the `aria-label` to a URL. Instead, use an appropriate human-friendly description.
13
13
14
+
### Be wary of `[aria-label]` on disallowed elements ⚠️
15
+
16
+
You may come across a scenario where `[aria-label]` is set on a generic `div` or `span`. This should also be flagged with the [NoAriaLabelMisuse](https://github.com/github/erblint-github/blob/main/docs/rules/accessibility/no-aria-label-misuse.md).
17
+
18
+
In this scenario, prioritize removing the `aria-label`!
19
+
14
20
## Resources
15
21
16
22
-[Staff only: Guidance on naming controls](https://github.com/github/accessibility-playbook/blob/main/content/link-and-button-guidance.mdx#guidance-on-naming-controls)
0 commit comments