add accessibility for sighted users

Signed-off-by: miguelrambalt <v-migueramirez@expediagroup.com>
This commit is contained in:
miguelrambalt
2021-04-07 17:52:41 -05:00
parent d0e2116c44
commit bc1afaf9f4
2 changed files with 7 additions and 3 deletions
@@ -71,10 +71,14 @@ export const MultistepJsonForm = ({
return (
<>
<Stepper activeStep={activeStep} orientation="vertical">
{steps.map(({ title, schema, ...formProps }) => {
{steps.map(({ title, schema, ...formProps }, index) => {
return (
<StepUI key={title}>
<StepLabel>
<StepLabel
aria-label={`Step ${index + 1} ${title}`}
aria-disabled="false"
tabIndex={0}
>
<Typography variant="h6" component="h3">
{title}
</Typography>
@@ -85,7 +85,7 @@ export const TemplateCard = ({
<Box className={classes.description}>{description}</Box>
</CardContent>
<CardActions>
<Button color="primary" to={href}>
<Button color="primary" to={href} aria-label={`Choose ${title} `}>
Choose
</Button>
</CardActions>