Skip to content

Commit

Permalink
Merge pull request #1388 from WordPress/update/meta-boxes-svg-icons-a11y
Browse files Browse the repository at this point in the history
Completely hide the meta boxes icons from screen readers
  • Loading branch information
afercia authored Jun 28, 2017
2 parents 4aa6d18 + 23be226 commit 67cf1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/icon-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function IconButton( { icon, children, label, className, focus, ...additionalPro

return (
<Button { ...additionalProps } aria-label={ label } className={ classes } focus={ focus }>
<Dashicon icon={ icon } />
<span aria-hidden="true"><Dashicon icon={ icon } /></span>
{ children }
</Button>
);
Expand Down

0 comments on commit 67cf1b9

Please sign in to comment.