Skip to content

Conversation

@khiga8
Copy link
Collaborator

@khiga8 khiga8 commented Jan 26, 2023

This new accessibility rule will flag when a focusable element has aria-hidden="true" set. Why? One might set aria-hidden="true" to hide an element from assistive technologies, but if the element is still reachable by keyboard, it can cause confusion.

This is the ERB Lint equivalent of a similar rule I PR-ed to eslint-plugin-jsx-a11y.

@khiga8
Copy link
Collaborator Author

khiga8 commented Jan 26, 2023

#54 must be merged first.

@khiga8 khiga8 force-pushed the kh-no-aria-hidden-on-focusable branch from 3e668c3 to bd16afd Compare January 26, 2023 13:39
@khiga8 khiga8 marked this pull request as ready for review January 26, 2023 13:58
@khiga8 khiga8 requested a review from a team as a code owner January 26, 2023 13:58
@accessibility-bot
Copy link

👋 Hello and thanks for pinging us! An accessibility first responder will review this soon.

  • 💻 On PRs for our review: please provide a review environment with steps to validate, screenshots (with alt text), or videos demonstrating functionality we should be checking. This will help speed up our review and feedback cycle.
  • ⚠️ If this is urgent, please visit us in #accessibility on Slack and tag the first responder(s) listed in the channel topic.

@khiga8 khiga8 force-pushed the kh-no-aria-hidden-on-focusable branch from 9f1b481 to abde068 Compare February 2, 2023 21:16
@khiga8 khiga8 merged commit 23ef636 into main Feb 2, 2023
@khiga8 khiga8 deleted the kh-no-aria-hidden-on-focusable branch February 2, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants