Skip to content
Snippets Groups Projects
Commit c09a295d authored by Tina Quach's avatar Tina Quach
Browse files

remove aria-hidden and add button aria role

parent 64e705d1
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ import closeIcon from './icon--close.svg';
const CloseButton = props => (
<div
aria-label="Close"
className={classNames(
styles.closeButton,
props.className,
......@@ -15,10 +16,10 @@ const CloseButton = props => (
[styles.large]: props.size === CloseButton.SIZE_LARGE
}
)}
role="button"
onClick={props.onClick}
>
<img
aria-hidden="true"
className={styles.closeIcon}
src={closeIcon}
/>
......
......@@ -11,10 +11,10 @@ const IconButton = ({
}) => (
<div
className={classNames(styles.container, className)}
role="button"
onClick={onClick}
>
<img
aria-hidden="true"
className={styles.icon}
src={img}
/>
......
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