-
Notifications
You must be signed in to change notification settings - Fork 526
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
Fix pagelayout stories axe violations #3012
Conversation
…x scrollable region issue.
…ories-axe-violations
🦋 Changeset detectedLatest commit: bd0e547 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
Thanks for putting this up @radglob! Just wanted to double-check on requirements for this, I believe that for this we would need the following:
A big challenge for this component seems to be getting that Is that you're understanding as well for this issue @ericwbailey @TylerJDev? Or is there anything missing? Let me know if that makes sense @radglob or if I'm overthinking this 🤔 Footnotes |
@joshblack - Yup, that is my understanding as well. I'm guessing we'll need to make the accessible name a required prop for @radglob - Let me know if you want to pair on this issue! Josh listed all the items we'd need to make sure this is accessible, but if you have any questions on the accessible bits let me know! 😁 |
…ories-axe-violations
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.
Looks great! I think only big thing is to make sure that one story gets the aria-label
to stop it from error'ing out. I left a couple other comments too, let me know what you think!
From a package release perspective, how do you feel about emitting a warning
instead of an error
for the missing aria-label
or aria-labelledby
? This could prompt people to add the label without potentially causing existing code to fail. Just wanted to get your thoughts on this 👀
I think it makes sense for this to be an error. Since it's an accessibility issue, it might be best to enforce that. Warnings tend to get ignored in my experience. |
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.
Looks great!
Adds
tabIndex
,role="region"
and requires either anaria-label
oraria-labelledby
on thePageLayout.Pane
component when overflow is detected. Overflow is determined by checking if thescrollHeight
of the pane is greater than theclientHeight
.Closes https://github.com/github/primer/issues/1865.
Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.