Skip to content

Commit

Permalink
feat: add aria-labels for bckg and rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 4, 2020
1 parent 87e44b2 commit 4b7b684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/blocks/src/Playground/BasePlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ export const BasePlayground: FC<BasePlaygroundProps> = ({
node: background === 'light' ? 'dark' : 'light',
id: 'background',
group: 'story',
'aria-label': 'switch light and dark background',
onClick: () => setBackground(background === 'light' ? 'dark' : 'light'),
},
{
node: direction === 'rtl' ? 'LTR' : 'RTL',
id: 'direction',
group: 'story',
'aria-label': 'switch left to right/right to left',
onClick: () => setDirection(direction === 'rtl' ? 'ltr' : 'rtl'),
},
];
Expand Down

0 comments on commit 4b7b684

Please sign in to comment.