Skip to content

Commit

Permalink
fix(Table): add aria-hidden to sort icons in Table (#76)
Browse files Browse the repository at this point in the history
add aria-hidden tag to the table headings of sortable columns in a sortable Table so icons are not
read aloud to screen-reader users
  • Loading branch information
MichaelRoytman authored Nov 20, 2017
1 parent 4f39d7b commit c9e0581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .storybook/__snapshots__/Storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,7 @@ exports[`Storyshots Table sortable 1`] = `
</span>
<span
aria-hidden={true}
className="fa fa-sort-desc"
/>
</span>
Expand Down
1 change: 1 addition & 0 deletions src/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Table extends React.Component {

return (<span
className={classNames(FontAwesomeStyles.fa, FontAwesomeStyles[sortIconClassName])}
aria-hidden
/>);
}

Expand Down

0 comments on commit c9e0581

Please sign in to comment.