Skip to content

Commit

Permalink
explicitly set aria-required
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra committed Nov 27, 2024
1 parent 29a9c96 commit 3deb8f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default class SelectOpener extends React.Component<
light,
open,
testId,
"aria-required": ariaRequired,
onBlur,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onOpenChanged,
Expand Down Expand Up @@ -168,6 +169,7 @@ export default class SelectOpener extends React.Component<
aria-disabled={disabled}
aria-expanded={open ? "true" : "false"}
aria-invalid={error}
aria-required={ariaRequired}
aria-haspopup="listbox"
data-testid={testId}
id={id}
Expand Down

0 comments on commit 3deb8f7

Please sign in to comment.