-
Notifications
You must be signed in to change notification settings - Fork 375
fix(lists): added role to list elements within components #8702
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
Conversation
|
Preview: https://patternfly-react-pr-8702.surge.sh A11y report: https://patternfly-react-pr-8702-a11y.surge.sh |
211ae3d to
50813c1
Compare
50813c1 to
8a31d76
Compare
mcoker
left a comment
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.
Left a comment about the existing wizard - the nested menus are missing a role. Though looking a little closer at the main nav list, even though we have visible list item numbers, those are pseudo elements, and we have list-style: none on the list to hide the default markers. I'm assuming that will need role="list", too?
8a31d76 to
53b793f
Compare
|
@mcoker nice catch! Added the role to the two remaining Wizard lists |
mcoker
left a comment
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.
🥳
|
just needs a rebase to get the tests passing. Does this need a code mod? |
377e987 to
29e13ba
Compare
|
@nicolethoen I don't think it will. Any update shouldn't really affect any tests or anything like that |
|
Your changes have been released in:
Thanks for your contribution! 🎉 |


What: Closes #8453
Mainly added
role="list"where applicable (also updating snapshots), but also exposed/added aria-label prop to several components.I added
role="listitem"to ProgressStep as the semantic role was being removed bydisplay: contentsin the CSS. Adding this role isn't a perfect fix as it now announces list items as "groups" rather than list items due to the aria labeling we have onli.pf-c-progress-stepper__stepand.pf-c-progress-stepper__step-title. cc @mcoker looks like this was mentioned when the component was created: https://github.com/patternfly/patternfly/pull/4357/files#r703742528Additional issues: