Skip to content

Commit

Permalink
Hide icons from screen-readers
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Aug 15, 2021
1 parent 9518783 commit b340c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/common/helpers/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import * as Mithril from 'mithril';
export default function icon(fontClass: string, attrs: Mithril.Attributes = {}): Mithril.Vnode {
attrs.className = 'icon ' + fontClass + ' ' + (attrs.className || '');

return <i {...attrs} />;
return <i aria-hidden="true" {...attrs} />;
}

0 comments on commit b340c32

Please sign in to comment.