Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Added aria label for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
KV106606Viswanath committed Oct 19, 2023
1 parent d9f0afc commit 0d4e2a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const Example = () => {
primaryOptionLabel="Primary Option"
onSelect={() => setMessage('Primary option clicked')}
isBlock
buttonAttrs={{
'aria-label': 'block split',
}}
>
<Item label="1st Option" onSelect={() => setMessage('1st option clicked')} />
<Item label="2nd Option" onSelect={() => setMessage('2nd option clicked')} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const GhostSplitButton = () => {
primaryOptionLabel="Reply"
onSelect={() => setMessage('Reply clicked')}
variant="ghost"
buttonAttrs={{
'aria-label': 'ghost split',
}}
>
<Item label="Reply All" onSelect={() => setMessage('Reply All clicked')} />
<Item label="Forward" onSelect={() => setMessage('Forward clicked')} />
Expand Down

0 comments on commit 0d4e2a9

Please sign in to comment.