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

[material-ui][docs] Improve aria-label throughout the Button Group demos #40892

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

danilo-leal
Copy link
Contributor

@danilo-leal danilo-leal commented Feb 1, 2024

Following recent docs-feedback — some aria labels were really not great and could use some basic polish.

https://deploy-preview-40892--material-ui.netlify.app/material-ui/react-button-group/

@danilo-leal danilo-leal added docs Improvements or additions to the documentation accessibility a11y package: material-ui Specific to @mui/material component: ButtonGroup The React component. labels Feb 1, 2024
@danilo-leal danilo-leal self-assigned this Feb 1, 2024
@mui-bot
Copy link

mui-bot commented Feb 1, 2024

Netlify deploy preview

https://deploy-preview-40892--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b0fe340

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Nice 🙌🏼

Also, we should probably confirm whether it's necessary to add role=group" to these containers; it makes sense to me, and it's what Bootstrap also recommends folks doing. Unlike aria-labels, though, that role attribute feels like something that should come out of the box, as it will always be needed in this Button Group context.

This makes sense, may I ask you to create an issue for tracking this?

@danilo-leal danilo-leal merged commit afbdb1b into mui:master Feb 6, 2024
19 checks passed
@danilo-leal danilo-leal deleted the improve-button-group-aria-label branch February 6, 2024 17:46
@danilo-leal
Copy link
Contributor Author

@DiegoAndai — never mind, I think I skimmed through it too fast and didn't see it, but the group role is already there, all good! 😃 That was easy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: ButtonGroup The React component. docs Improvements or additions to the documentation package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants