Add alt tags to images for a11y (#529)

- Add imageAlt to GridBlock
- Set alt equal to `user.caption` for mapped users
- Set alt equal to `post.author` for blog posts
- Update documentation
This commit is contained in:
Amy Lam 2018-04-07 19:13:12 -07:00 committed by Joel Marcey
parent fc6e3b7311
commit c2cd169b64
10 changed files with 33 additions and 18 deletions

View file

@ -217,6 +217,7 @@ class HeaderNav extends React.Component {
<img
className="logo"
src={this.props.baseUrl + siteConfig.headerIcon}
alt={siteConfig.title}
/>
)}
{!this.props.config.disableHeaderTitle && (