Skip to content

Conversation

@khiga8
Copy link
Collaborator

@khiga8 khiga8 commented Nov 25, 2021

Relates to https://github.com/github/accessibility/issues/430

What are you trying to accomplish?

This PR introduces a linter rule to prevent misuse of aria-label and aria-labelledby. For more information, see no-aria-label-misuse.md

Note

As noted in the rule docs, there are conflicting resources on what elements should support these naming attributes. For now, this rule will operate under a relatively simple heuristic aimed to minimize false positives and target the most common misuse of aria-label we've seen, but there's definitely room for future improvements.

@khiga8 khiga8 force-pushed the kh-add_aria_label_misuse_linter branch from d5eaa7e to 8787397 Compare November 25, 2021 00:11
@khiga8 khiga8 marked this pull request as ready for review November 25, 2021 00:13
@khiga8 khiga8 requested review from a team, bolonio and smockle November 25, 2021 00:15
Copy link
Contributor

@smockle smockle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, we just talked about this re: https://primer.style/css/components/tooltips#tooltip-direction. Nice work, @khiga8! 🚀

@khiga8 khiga8 merged commit e4a1d9f into main Nov 30, 2021
@khiga8 khiga8 deleted the kh-add_aria_label_misuse_linter branch November 30, 2021 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants