Skip to content

Commit

Permalink
Add role="radiogroup" to fieldset in Radio group component (#3235)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev authored Dec 9, 2024
1 parent 4bfbadc commit c765093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-jokes-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Adds `role="radiogroup"` on `fieldset` in radio group component
2 changes: 1 addition & 1 deletion app/lib/primer/forms/radio_button_group.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="FormControl-radio-group-wrap">
<%= 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 %>
Expand Down

0 comments on commit c765093

Please sign in to comment.