Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #194 from WordPress/add/aria-hidden
Browse files Browse the repository at this point in the history
Add aria-hidden and role attributes to react component
  • Loading branch information
field2 authored Jun 6, 2017
2 parents 609955d + 17adf0c commit 075d2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/dashicon/inc/index-footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const iconClass = [ 'dashicon', 'dashicons-' + icon, className ].filter( Boolean ).join( ' ' );

return (
<svg className={ iconClass } xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
<svg aria-hidden="true" role="img" className={ iconClass } xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
<path d={ path } />
</svg>
);
Expand Down

0 comments on commit 075d2d0

Please sign in to comment.