Skip to content

Commit

Permalink
Add role="alert" to InputError
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Jan 23, 2025
1 parent 4da7bc4 commit bf9d291
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shared/components/InputError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const InputError = ({ id, children }: InputErrorProps) => {
return (
<div
aria-live="assertive"
role="alert"
id={id}
data-testid={id}
className="mt-16 flex items-center gap-x-4 text-red-800"
Expand Down

0 comments on commit bf9d291

Please sign in to comment.