Skip to content

Commit

Permalink
[docs] Use empty alt text for decorative images, add aria-label to th…
Browse files Browse the repository at this point in the history
…emes link
  • Loading branch information
mbrookes committed Dec 8, 2019
1 parent a973b2f commit 9fc613f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions docs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ export default function HomePage() {
<main id="main-content" tabIndex="-1">
<div className={classes.hero}>
<Container maxWidth="md" className={classes.content}>
<img
src="/static/images/material-ui-logo.svg"
alt="Material-UI Logo"
className={classes.logo}
/>
<img src="/static/images/material-ui-logo.svg" alt="" className={classes.logo} />
<div>
<Typography
variant="h3"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function HomeFooter(props) {
<Grid container>
<Grid item xs={12} md={3}>
<div className={classes.logo}>
<img src="/static/images/material-ui-logo.svg" alt="Material-UI Logo" />
<img src="/static/images/material-ui-logo.svg" alt="" />
<Typography color="primary">Material-UI</Typography>
</div>
</Grid>
Expand Down
3 changes: 2 additions & 1 deletion docs/src/modules/components/HomeSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,12 @@ function HomeSteps(props) {
data-ga-event-action="click"
data-ga-event-label="home-image"
className={classes.link}
aria-label={t('themesButton')}
>
<NoSsr>
<img
className={classes.img}
alt="themes"
alt=""
src={`/static/images/themes-${theme.palette.type}.jpg`}
loading="eager"
width={500}
Expand Down

0 comments on commit 9fc613f

Please sign in to comment.