Skip to content

Conversation

@thatblindgeye
Copy link
Contributor

@thatblindgeye thatblindgeye commented Feb 16, 2023

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 by display: contents in 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 on li.pf-c-progress-stepper__step and .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#r703742528

Additional issues:

@patternfly-build
Copy link
Contributor

patternfly-build commented Feb 16, 2023

@mcoker
Copy link
Contributor

mcoker commented Mar 6, 2023

Do we care about this one on the wizard? This is the current wizard - it looks OK on wizard next.

Screenshot 2023-03-06 at 3 05 47 PM

Copy link
Contributor

@mcoker mcoker left a 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?

Screenshot 2023-03-06 at 3 09 21 PM

@thatblindgeye
Copy link
Contributor Author

@mcoker nice catch! Added the role to the two remaining Wizard lists

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@nicolethoen
Copy link
Contributor

just needs a rebase to get the tests passing. Does this need a code mod?

@thatblindgeye
Copy link
Contributor Author

@nicolethoen I don't think it will. Any update shouldn't really affect any tests or anything like that

@nicolethoen nicolethoen merged commit 516d4a1 into patternfly:v5 Mar 8, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.0.0-alpha.27
  • @patternfly/react-core@5.0.0-alpha.27
  • @patternfly/react-docs@6.0.0-alpha.30
  • demo-app-ts@5.0.0-alpha.10
  • @patternfly/react-table@5.0.0-alpha.27

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure we're using list roles properly

6 participants