Browse Source

site: add alt to images

pull/10610/head
afc163 7 years ago
parent
commit
0fc5a0ece5
  1. 2
      components/upload/demo/avatar.md
  2. 2
      site/theme/template/Layout/Footer.jsx

2
components/upload/demo/avatar.md

@ -73,7 +73,7 @@ class Avatar extends React.Component {
beforeUpload={beforeUpload}
onChange={this.handleChange}
>
{imageUrl ? <img src={imageUrl} alt="" /> : uploadButton}
{imageUrl ? <img src={imageUrl} alt="avatar" /> : uploadButton}
</Upload>
);
}

2
site/theme/template/Layout/Footer.jsx

@ -226,7 +226,7 @@ class Footer extends React.Component {
<Col md={6} sm={24} xs={24}>
<div className="footer-center">
<h2>
<img className="title-icon" src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg" alt="" />
<img className="title-icon" src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg" alt="AFX Cloud" />
<FormattedMessage id="app.footer.more-product" />
</h2>
<div>

Loading…
Cancel
Save