Add accessibility add on to storybook for finding a11y issues

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-07-20 18:29:57 +02:00
committed by blam
parent 19d9995b6b
commit 28fba930fe
2 changed files with 2 additions and 7 deletions
@@ -15,12 +15,7 @@
*/
import React from 'react';
import {
ListItemIcon,
Divider,
Typography,
makeStyles,
} from '@material-ui/core';
import { Divider, Typography, makeStyles } from '@material-ui/core';
import ArrowIcon from '@material-ui/icons/ArrowForward';
import { BackstageTheme } from '@backstage/theme';
import Box from '@material-ui/core/Box';
@@ -204,7 +204,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
if (isButtonItem(props)) {
return (
<button aria-label={text ? text : props.to} {...childProps} ref={ref}>
<button aria-label={text} {...childProps} ref={ref}>
{content}
</button>
);