Skip to content
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

[NProgressBar] Fix invalid ARIA and HTML #26234

Merged
merged 4 commits into from May 10, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented May 10, 2021

  1. Remove role instead of using an invalid role bar
    If we want to use progressbar we would need to provide a name.
  2. Use div and pseudo selectors instead of dt and dd which is invalid markup

I understand that there's ongoing work to promote this component to core (#25889), but in its current state it's blocking automated a11y trests. This fix should be propagated to @material-ui/docs anyway.

https://deploy-preview-26234--material-ui.netlify.app/getting-started/templates/

@mui-pr-bot
Copy link

mui-pr-bot commented May 10, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against c646c46

@eps1lon eps1lon marked this pull request as ready for review May 10, 2021 12:05
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label May 10, 2021
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

The bar is no longer going to the end, we will likely polish it #25889, but we might as well keep the UX identical until we do

Screen.Recording.2021-05-10.at.16.56.45.mov

HEAD:

Screen.Recording.2021-05-10.at.16.58.00.mov

Copy link
Member Author

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Maybe this'll work

@eps1lon eps1lon merged commit baa6868 into mui:next May 10, 2021
@eps1lon eps1lon deleted the fix/docs/NProgressBar branch May 10, 2021 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants