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

[Select][joy] Improve the a11y on the select field demo #34073

Merged
merged 1 commit into from Aug 29, 2022

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Aug 25, 2022

I noticed this while trying to create a form with Joy. When using a label we should use the htmlFor associated with the select's id. I would probably even drop the aria-label in this demo, but I was not sure about that change. Notice now how clicking on the label focuses and opens the select.

Also, I am not sure about the mt: 0.25, as it looks a bit off compared to the textfield.

@mnajdova mnajdova added docs Improvements or additions to the documentation accessibility a11y package: joy-ui Specific to @mui/joy labels Aug 25, 2022
@mui-bot
Copy link

mui-bot commented Aug 25, 2022

No bundle size changes

Generated by 🚫 dangerJS against 03e9f30

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Tested with keyboard and VoiceOver.

@michaldudak michaldudak merged commit 81142e1 into mui:master Aug 29, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants