Skip to content
Snippets Groups Projects
Unverified Commit 857dca5d authored by Tina Quach's avatar Tina Quach Committed by GitHub
Browse files

Merge pull request #849 from quachtina96/ariahidden

Hide icons from screenreader
parents 508b10cd dd7d9e9e
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ import closeIcon from './icon--close.svg'; ...@@ -7,6 +7,7 @@ import closeIcon from './icon--close.svg';
const CloseButton = props => ( const CloseButton = props => (
<div <div
aria-label="Close"
className={classNames( className={classNames(
styles.closeButton, styles.closeButton,
props.className, props.className,
...@@ -15,6 +16,7 @@ const CloseButton = props => ( ...@@ -15,6 +16,7 @@ const CloseButton = props => (
[styles.large]: props.size === CloseButton.SIZE_LARGE [styles.large]: props.size === CloseButton.SIZE_LARGE
} }
)} )}
role="button"
onClick={props.onClick} onClick={props.onClick}
> >
<img <img
......
...@@ -11,6 +11,7 @@ const IconButton = ({ ...@@ -11,6 +11,7 @@ const IconButton = ({
}) => ( }) => (
<div <div
className={classNames(styles.container, className)} className={classNames(styles.container, className)}
role="button"
onClick={onClick} onClick={onClick}
> >
<img <img
......
...@@ -54,6 +54,7 @@ class SpriteInfo extends React.Component { ...@@ -54,6 +54,7 @@ class SpriteInfo extends React.Component {
<MediaQuery minWidth={layout.fullSizeMinWidth}> <MediaQuery minWidth={layout.fullSizeMinWidth}>
<div className={styles.iconWrapper}> <div className={styles.iconWrapper}>
<img <img
aria-hidden="true"
className={classNames(styles.xIcon, styles.icon)} className={classNames(styles.xIcon, styles.icon)}
src={xIcon} src={xIcon}
/> />
...@@ -76,6 +77,7 @@ class SpriteInfo extends React.Component { ...@@ -76,6 +77,7 @@ class SpriteInfo extends React.Component {
<MediaQuery minWidth={layout.fullSizeMinWidth}> <MediaQuery minWidth={layout.fullSizeMinWidth}>
<div className={styles.iconWrapper}> <div className={styles.iconWrapper}>
<img <img
aria-hidden="true"
className={classNames(styles.yIcon, styles.icon)} className={classNames(styles.yIcon, styles.icon)}
src={yIcon} src={yIcon}
/> />
......
...@@ -4,6 +4,7 @@ exports[`IconButtonComponent matches snapshot 1`] = ` ...@@ -4,6 +4,7 @@ exports[`IconButtonComponent matches snapshot 1`] = `
<div <div
className="custom-class-name" className="custom-class-name"
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
......
...@@ -341,6 +341,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -341,6 +341,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -357,6 +358,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -357,6 +358,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -373,6 +375,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -373,6 +375,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -389,6 +392,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -389,6 +392,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -405,6 +409,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -405,6 +409,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -421,6 +426,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -421,6 +426,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
...@@ -437,6 +443,7 @@ exports[`Sound Editor Component matches snapshot 1`] = ` ...@@ -437,6 +443,7 @@ exports[`Sound Editor Component matches snapshot 1`] = `
<div <div
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
......
...@@ -12,8 +12,10 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = ` ...@@ -12,8 +12,10 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = `
onTouchStart={[Function]} onTouchStart={[Function]}
> >
<div <div
aria-label="Close"
className="" className=""
onClick={[Function]} onClick={[Function]}
role="button"
> >
<img <img
className={undefined} className={undefined}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment