Skip to content

Commit

Permalink
A11Y - Providing descriptive labels (#1127)
Browse files Browse the repository at this point in the history
added Fr label for the reader to read the currency input error when empty
  • Loading branch information
alex-solo authored Feb 4, 2025
1 parent e70c4d0 commit 65aa2d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/Forms/CurrencyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export const CurrencyField: React.VFC<CurrencyFieldProps> = ({
decimalScale={2}
onBlur={() => setFieldValue(getFieldValue())}
maxLength={locale == Language.EN ? 15 : 16}
aria-label="Enter amount in dollars"
aria-label={
locale === Language.EN
? 'Enter amount in dollars'
: 'Entrez le montant en dollars'
}
aria-describedby={
locale === Language.EN ? `${name}-currency-symbol` : undefined
}
Expand Down

0 comments on commit 65aa2d2

Please sign in to comment.