-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat(rule): Scrollable region focusable #1396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm concerned about false positives in this one. Even a single pixel over overflow causes this rule to match the scrollable region. We're not actually looking to see if any of content is hidden. I think that's important. Thinking about this a little more, I'm wondering if we shouldn't exclude elements with overflow:hidden
, and elements with the overflow area is small, maybe anything less than 1em or something. Edges get clipped all the time. Please come up with a proposal for this problem.
@JKODU who has the ball on this PR? |
@dylanb it has been reviewed by @WilcoFiers. I am picking up with the changes requested. Should be ready for another round soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I didn't review the test cases yet. But I'm done for today, so I figured I'd share what I've got.
This new rule is causing standard accessible text clipping techniques to fail. For example, this CSS:
is marked as a violation in axe-coconut. @WilcoFiers pointed out above that elements with overflow:hidden might be exempted. I think this is a good idea. We use axe-coconut for testing because of some of the useful experimental rules. But now we are getting vast numbers of false positives due to this new rule. |
Rule which checks if scrollable region has keyboard access.
Closes issue: #96
Reviewer checks
Required fields, to be filled out by PR reviewer(s)