-
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
feat(FormGroup): support id
on fieldset legend
#9074
feat(FormGroup): support id
on fieldset legend
#9074
Conversation
❌ Deploy Preview for carbon-react-next failed. 🔨 Explore the source changes: 09fe996 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/60e70d765c08e70007346b37 |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 09fe996 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60e70d762cabdb00083fa56d 😎 Browse the preview: https://deploy-preview-9074--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 09fe996 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60e70d76983f8700073791eb 😎 Browse the preview: https://deploy-preview-9074--carbon-components-react.netlify.app |
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.
🎉
d9d03f9
to
67f3fc0
Compare
bump @tw15egan when you have some time! |
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 #9072
This PR adds a
legendId
prop to FormGrouplegend
and syncs it witharia-labelledby
if it is already provided. If not, thearia-labelledby
on thefieldset
will fall back to thelegendId
valueTesting / Reviewing
Verify that the FormGroup
aria-labelledby
onfieldset
matches with thelegendId
when one of the values is provided, and confirm that the props match the provided values if both are provided