fixing a11y error (#26906)
This commit is contained in:
parent
e61e1ac6dc
commit
818241f7a7
|
@ -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 && (
|
||||
|
|
Loading…
Reference in a new issue