fixing a11y error (#26906)

This commit is contained in:
Bhavya RM 2018-12-11 09:10:18 -05:00 committed by GitHub
parent e61e1ac6dc
commit 818241f7a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 && (