From 9c4a72dff0240564cac1502b9717a25849ba3fea Mon Sep 17 00:00:00 2001 From: Raghunandan Date: Fri, 27 Jan 2023 10:28:43 +0100 Subject: [PATCH] Add aria label for mobile sidebar links Signed-off-by: Raghunandan --- packages/core-components/src/layout/Sidebar/SidebarGroup.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core-components/src/layout/Sidebar/SidebarGroup.tsx b/packages/core-components/src/layout/Sidebar/SidebarGroup.tsx index 15d22599b5..70fec8a294 100644 --- a/packages/core-components/src/layout/Sidebar/SidebarGroup.tsx +++ b/packages/core-components/src/layout/Sidebar/SidebarGroup.tsx @@ -23,7 +23,7 @@ import { makeStyles } from '@material-ui/core/styles'; import React, { useContext } from 'react'; import { useLocation } from 'react-router-dom'; import { Link } from '../../components'; -import { SidebarConfigContext, SidebarConfig } from './config'; +import { SidebarConfig, SidebarConfigContext } from './config'; import { MobileSidebarContext } from './MobileSidebar'; import { useSidebarPinState } from './SidebarPinStateContext'; @@ -109,6 +109,7 @@ const MobileSidebarGroup = (props: SidebarGroupProps) => { value={value} selected={selected} classes={classes} + aria-label={label} /> ); };