Skip to content

Commit

Permalink
accessibility voice over additions
Browse files Browse the repository at this point in the history
  • Loading branch information
amaclean2 committed Jul 15, 2020
1 parent c40649f commit 02de083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/buttons/button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ export function Button({ fundingSource, style, multiple, locale, env, fundingEli
onRender={ onButtonRender }
onKeyPress={ keypressHandler }
tabindex='0'
aria-label={ labelText }>
aria-label={ labelText }
>

<div class={ CLASS.BUTTON_LABEL }>
{ labelNode }
Expand Down
2 changes: 2 additions & 0 deletions src/ui/buttons/menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export function MenuButton({ color = TEXT_COLOR.BLACK } : {| color? : $Values<ty
return (
<Style css={ css }>
<div
role="button"
aria-label="funding-options dropdown"
{ ...{
[ATTRIBUTE.MENU]: true
} }
Expand Down

0 comments on commit 02de083

Please sign in to comment.