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][Select] Do not set aria-controls when closed #44919

Merged
merged 8 commits into from
Jan 7, 2025

Conversation

siddhantantil39
Copy link
Contributor

@siddhantantil39 siddhantantil39 commented Jan 2, 2025

I have added a check to set the aria-controls to check if select is open or not before setting the value as listboxId

@mui-bot
Copy link

mui-bot commented Jan 2, 2025

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 28ec990

@DiegoAndai DiegoAndai requested a review from mj12albert January 2, 2025 20:03
@zannager zannager added the component: select This is the name of the generic UI component, not the React module! label Jan 3, 2025
@siddhantantil39
Copy link
Contributor Author

@mj12albert can you please review the PR?

Co-authored-by: Albert Yu <[email protected]>
Signed-off-by: siddhantantil39 <[email protected]>
@siddhantantil39
Copy link
Contributor Author

I've added the suggestions added by @mj12albert . Feel free to have a look whenever possible.

@mj12albert mj12albert added bug 🐛 Something doesn't work accessibility a11y labels Jan 7, 2025
@mj12albert mj12albert changed the title [material-ui][Select] Aria-controls references invalid id when select closed [material-ui][Select] Do not set aria-controls when closed Jan 7, 2025
@mj12albert
Copy link
Member

I've added the suggestions added by @mj12albert . Feel free to have a look whenever possible.

Looks good!

@mj12albert mj12albert merged commit 0221d17 into mui:master Jan 7, 2025
19 checks passed
@siddhantantil39 siddhantantil39 deleted the i43876 branch January 7, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants