Skip to content

Commit

Permalink
fixing a11y error (#26906) (#26967)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm authored Dec 11, 2018
1 parent 68a8f5b commit 0512f66
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export const VisTypeIcon = ({ visType }: VisTypeIconProps) => {
return (
<React.Fragment>
{visType.image && (
<img src={visType.image} aria-hidden="true" className="visNewVisDialog__typeImage" />
<img
src={visType.image}
aria-hidden="true"
role="presentation"
alt=""
className="visNewVisDialog__typeImage"
/>
)}
{!visType.image && visType.legacyIcon && <span className={legacyIconClass} />}
{!visType.image && !visType.legacyIcon && (
Expand Down

0 comments on commit 0512f66

Please sign in to comment.