-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(Tab): sync tab id with tab panel id #8074
fix(Tab): sync tab id with tab panel id #8074
Conversation
Deploy preview for carbon-elements ready! Built with commit 363dfe1 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 363dfe1 https://deploy-preview-8074--carbon-components-react.netlify.app |
It seems like if an |
the id prop requirement hasn't been changed since the component was created but if we now want to mark the prop as required then I think that strengthens the case for autogenerated IDs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me checked against IBM Accessibility Checker 👍🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 ✅
Closes #8070
Related #7511
Related #7519
This PR removes auto ID generation to properly sync tab button and tab panel IDs. Autogeneration can be reimplemented if desired, but it may not be necessary
Testing / Reviewing
Confirm the "4.1.2 Name, Role, Value" violations for tab headers are no longer present and that #7511 remains resolved