Unverified Commit c9e0581f by Michael Roytman Committed by GitHub

fix(Table): add aria-hidden to sort icons in Table (#76)

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
parent 4f39d7b7
...@@ -1602,6 +1602,7 @@ exports[`Storyshots Table sortable 1`] = ` ...@@ -1602,6 +1602,7 @@ exports[`Storyshots Table sortable 1`] = `
</span> </span>
<span <span
aria-hidden={true}
className="fa fa-sort-desc" className="fa fa-sort-desc"
/> />
</span> </span>
......
...@@ -59,6 +59,7 @@ class Table extends React.Component { ...@@ -59,6 +59,7 @@ class Table extends React.Component {
return (<span return (<span
className={classNames(FontAwesomeStyles.fa, FontAwesomeStyles[sortIconClassName])} className={classNames(FontAwesomeStyles.fa, FontAwesomeStyles[sortIconClassName])}
aria-hidden
/>); />);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment