From 399a511f81655caa74dadce12a9b73a22090a562 Mon Sep 17 00:00:00 2001 From: Aram <37216945+alimpens@users.noreply.github.com> Date: Fri, 24 May 2024 12:32:54 +0200 Subject: [PATCH] Update storybook/src/components/FieldSet/FieldSet.docs.mdx Co-authored-by: Vincent Smedinga --- storybook/src/components/FieldSet/FieldSet.docs.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storybook/src/components/FieldSet/FieldSet.docs.mdx b/storybook/src/components/FieldSet/FieldSet.docs.mdx index 73cf8576a6..a8c374db83 100644 --- a/storybook/src/components/FieldSet/FieldSet.docs.mdx +++ b/storybook/src/components/FieldSet/FieldSet.docs.mdx @@ -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.