diff --git a/.changeset/sharp-jokes-notice.md b/.changeset/sharp-jokes-notice.md new file mode 100644 index 0000000000..0610459244 --- /dev/null +++ b/.changeset/sharp-jokes-notice.md @@ -0,0 +1,5 @@ +--- +'@primer/view-components': patch +--- + +Adds `role="radiogroup"` on `fieldset` in radio group component diff --git a/app/lib/primer/forms/radio_button_group.html.erb b/app/lib/primer/forms/radio_button_group.html.erb index cdfa2fb162..4683f4a4e5 100644 --- a/app/lib/primer/forms/radio_button_group.html.erb +++ b/app/lib/primer/forms/radio_button_group.html.erb @@ -1,5 +1,5 @@
- <%= content_tag(:fieldset, **@input.input_arguments) do %> + <%= content_tag(:fieldset, role: 'radiogroup', **@input.input_arguments) do %> <% if @input.label %> <%= content_tag(:legend, **@input.label_arguments) do %> <%= @input.label %>