Skip to content

Commit

Permalink
Merge pull request #1407 from GSA/radio-aria-described
Browse files Browse the repository at this point in the history
Radio description ID for aria describe by property
  • Loading branch information
yerramshilpa authored Jan 30, 2024
2 parents 4f4ff44 + 2fd05c9 commit 8e13a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/packages/sam-formly/src/lib/formly/types/radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="usa-radio"
[id]="id"
[attr.aria-label]="props.ariaLabel? props.ariaLabel : props.label"
[attr.aria-describedby]="props.description ? id + '_description' : undefined"
[attr.aria-describedby]="props.description ? id + '-description' : undefined"
[ngClass]="{'horizontal': props.horizontal, 'grid-row': props.horizontal}"
>
<div *ngIf="props.options">
Expand Down Expand Up @@ -106,6 +106,7 @@
checked="checked"
[formControl]="formControl"
[value]="option.value"
tabindex="0"
/>

<label
Expand Down

0 comments on commit 8e13a2d

Please sign in to comment.