diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-02 18:57:56 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-02 18:57:56 +0200 |
| commit | d7fa0a16bebbb58e842f28396a0973f16a060996 (patch) | |
| tree | e8baa78566523de3d3533f0815efb375a00878d9 /src/components/molecules/buttons | |
| parent | 7a875655daf9dfa0b4803e287ae59b37ffe4f342 (diff) | |
fix: improve help button accessibility with aria-pressed
Diffstat (limited to 'src/components/molecules/buttons')
| -rw-r--r-- | src/components/molecules/buttons/help-button.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/molecules/buttons/help-button.tsx b/src/components/molecules/buttons/help-button.tsx index ccf1ebd..ec89f4e 100644 --- a/src/components/molecules/buttons/help-button.tsx +++ b/src/components/molecules/buttons/help-button.tsx @@ -3,7 +3,10 @@ import { forwardRef, ForwardRefRenderFunction } from 'react'; import { useIntl } from 'react-intl'; import styles from './help-button.module.scss'; -export type HelpButtonProps = Pick<ButtonProps, 'className' | 'onClick'>; +export type HelpButtonProps = Pick< + ButtonProps, + 'aria-pressed' | 'className' | 'onClick' +>; /** * HelpButton component |
