Skip to content

Commit c0fd5e0

Browse files
append 'navigation' to the aria-label string
1 parent e5ff68e commit c0fd5e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/UnderlineNav2/UnderlineNav.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ describe('UnderlineNav', () => {
116116
const {container} = render(<ResponsiveUnderlineNav />)
117117
const heading = container.getElementsByTagName('h2')[0]
118118
expect(heading.className).toContain('VisuallyHidden')
119-
expect(heading.textContent).toBe('Repository')
119+
expect(heading.textContent).toBe('Repository navigation')
120120
})
121121
})

src/UnderlineNav2/UnderlineNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export const UnderlineNav = forwardRef(
303303
iconsVisible
304304
}}
305305
>
306-
{ariaLabel && <VisuallyHidden as="h2">{ariaLabel}</VisuallyHidden>}
306+
{ariaLabel && <VisuallyHidden as="h2">{`${ariaLabel} navigation`}</VisuallyHidden>}
307307
<Box
308308
as={as}
309309
sx={merge<BetterSystemStyleObject>(getNavStyles(theme, {align}), sxProp)}

0 commit comments

Comments
 (0)