adding alt tag with empty text to fix jsx-a11y errors (#24922)

This commit is contained in:
Bhavya RM 2018-10-31 15:04:33 -04:00 committed by GitHub
parent 9527e0e7c7
commit 21bec215dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -148,6 +148,7 @@ export class VisualizeListingTable extends Component {
<img
className="visListingTable__typeImage"
aria-hidden="true"
alt=""
src={item.type.image}
/>
);

View file

@ -24,7 +24,7 @@ export const RecognizedResult = ({
// if a logo is available, use that, otherwise display the id
// the logo should be a base64 encoded image
if (config.logo && config.logo.src) {
logo = <div><img className="synopsisIcon" src={config.logo.src}/></div>;
logo = <div><img className="synopsisIcon" alt="" src={config.logo.src}/></div>;
} else {
logo = <h3 className="euiTitle euiTitle--small">{config.id}</h3>;
}