Skip to content

Commit

Permalink
[docs] Improve a11y story of /customization/color#color-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 2, 2020
1 parent e2c371c commit f5f8f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/customization/color/ColorDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function ColorDemo(props) {
>
<MenuIcon />
</IconButton>
<Typography variant="h6" color="inherit">
<Typography component="div" variant="h6" color="inherit">
Color
</Typography>
</Toolbar>
Expand Down
12 changes: 2 additions & 10 deletions docs/src/pages/customization/color/ColorTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,10 @@ function ColorTool(props) {

return (
<Grid item xs={12} sm={6} md={4}>
<Typography gutterBottom variant="h6">
<Typography component="label" gutterBottom htmlFor={intent} variant="h6">
{capitalize(intent)}
</Typography>
<Input
id={intent}
value={intentInput}
onChange={handleChangeColor(intent)}
inputProps={{
'aria-label': `${capitalize(intent)} color`,
}}
fullWidth
/>
<Input id={intent} value={intentInput} onChange={handleChangeColor(intent)} fullWidth />
<div className={classes.sliderContainer}>
<Typography id={`${intent}ShadeSliderLabel`}>Shade:</Typography>
<Slider
Expand Down

0 comments on commit f5f8f87

Please sign in to comment.