Merge pull request #11373 from mhaley37/fix-component-page-accessibility

Add aria-label to sidebar & fix heading sizes in entity about card
This commit is contained in:
Fredrik Adelöw
2022-05-09 17:16:08 +02:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/core-components': patch
'@backstage/plugin-catalog': patch
---
Sidebar NAV now includes aria-label. Component AboutField now uses h2 variant instead of subtitle2 (font properties unchanged)
@@ -189,7 +189,7 @@ const DesktopSidebar = (props: DesktopSidebarProps) => {
};
return (
<nav style={{}}>
<nav style={{}} aria-label="sidebar nav">
<A11ySkipSidebar />
<SidebarContext.Provider value={{ isOpen, setOpen }}>
<div
@@ -66,7 +66,7 @@ export function AboutField(props: AboutFieldProps) {
);
return (
<Grid item {...gridSizes}>
<Typography variant="subtitle2" className={classes.label}>
<Typography variant="h2" className={classes.label}>
{label}
</Typography>
{content}