Add alt attribute to images on the Add data page (#58767) (#58867)

* add alt attr to images

* add alt attr to images
This commit is contained in:
Ryan Keairns 2020-02-28 09:58:37 -06:00 committed by GitHub
parent e67873f452
commit 62aff6b01f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -9,6 +9,7 @@ exports[`props iconType 1`] = `
href="link_to_item" href="link_to_item"
icon={ icon={
<EuiIcon <EuiIcon
alt=""
size="l" size="l"
type="logoApache" type="logoApache"
/> />

View file

@ -37,13 +37,7 @@ export function Synopsis({
if (iconUrl) { if (iconUrl) {
optionalImg = <img className="synopsisIcon" src={iconUrl} alt="" />; optionalImg = <img className="synopsisIcon" src={iconUrl} alt="" />;
} else if (iconType) { } else if (iconType) {
optionalImg = ( optionalImg = <EuiIcon type={iconType} alt="" size="l" />;
<EuiIcon
type={iconType}
// color="primary"
size="l"
/>
);
} }
const classes = classNames('homSynopsis__card', { const classes = classNames('homSynopsis__card', {