Skip to content

Commit

Permalink
Add aria-labels to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Sep 24, 2018
1 parent f9da602 commit 29047e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const Button = ({
className={classnames(classes.button, className)}
color={color}
size={size}
aria-label={label && translate(label, { _: label })}
{...rest}
>
{alignIcon === 'left' &&
Expand Down
1 change: 1 addition & 0 deletions packages/ra-ui-materialui/src/button/CreateButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const CreateButton = ({
color="primary"
className={classnames(classes.floating, className)}
to={`${basePath}/create`}
aria-label={label && translate(label)}
{...rest}
>
<ContentAdd />
Expand Down

0 comments on commit 29047e4

Please sign in to comment.