Skip to content

Commit

Permalink
fix: toggle default aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 27, 2021
1 parent adbba76 commit 92bccc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/components/src/Toggle/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const Toggle: FC<ToggleProps> = forwardRef(function Toggle(
id={id}
checked={checked}
onChange={onChange}
aria-label={`click to ${checked ? 'un-' : ''}select`}
{...rest}
/>
);
Expand Down

0 comments on commit 92bccc9

Please sign in to comment.