Skip to content

Commit

Permalink
Update storybook/src/components/FieldSet/FieldSet.docs.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
alimpens and VincentSmedinga authored May 24, 2024
1 parent 71e50d9 commit 399a511
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storybook/src/components/FieldSet/FieldSet.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ A Field Set can indicate whether any of the inputs it contains has a validation
### Radio group

Use a Field Set to group radio buttons.
When grouping radio inputs, use `role="radiogroup"` on Field Set to have this grouping explicitly announced as a radio group.
Field Set has a default role of `group`.
When grouping radio inputs, use `role="radiogroup"` on Field Set to have this grouping explicitly announced as a radio group (the default role is `group`).

Using `role="radiogroup"` also allows you to use `aria-required` on Field Set, which isn’t allowed for role `group`.
Always also set `aria-required` on the individual radio buttons though, to make sure it’s read by screen readers.
Expand Down

0 comments on commit 399a511

Please sign in to comment.