Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplify no-visually-hidden-interactive-elements and fix bug #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

khiga8
Copy link
Collaborator

@khiga8 khiga8 commented Oct 19, 2023

Fixes: https://github.com/github/accessibility/issues/4848

I saw a few unexpected elements being flagged with our new rule, no-visually-hidden-interctive-elements. I added a test case test_does_not_warn_on_unexpected_elements which fails with the current code on main.

I think the logic we have right now try to determine if an interactive element is nested inside an sr-only isn't quite complete. I suggest we simplify the logic for now to only flag interactive elements with sr-only.

@khiga8 khiga8 requested a review from a team as a code owner October 19, 2023 18:26
@khiga8 khiga8 requested a review from kendallgassner October 19, 2023 18:27
@khiga8 khiga8 merged commit f8539b9 into main Oct 19, 2023
@khiga8 khiga8 deleted the kh-fix-visually-hidden-bug branch October 19, 2023 18:34
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.

2 participants