Skip to content

Commit

Permalink
Merge branch 'main' into next-element-id
Browse files Browse the repository at this point in the history
  • Loading branch information
timarney authored Nov 27, 2024
2 parents 5a0b32c + afbf9c7 commit 33d0837
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/clientComponents/forms/FormGroup/FormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export const FormGroup = (props: FormGroupProps): React.ReactElement => {
data-testid="formGroup"
className={classes}
aria-describedby={ariaDescribedBy}
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex={0}
// Used to programmatically focus a form group by e.g. a form validation skip ahead link
// -1 is used over 0, so the group is not in the natural tab order which is confusing for AT
tabIndex={-1}
>
{children}
</fieldset>
Expand Down

0 comments on commit 33d0837

Please sign in to comment.