Skip to content

Commit be25914

Browse files
authored
Remove group role for link in treeview (github#41277)
1 parent 0b03061 commit be25914

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/sidebar/ProductCollapsibleSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const ProductCollapsibleSection = (props: SectionProps) => {
3131
}}
3232
>
3333
<Link
34-
role="group"
3534
id={page.href}
3635
href={page.href}
3736
className={cx('color-fg-default no-underline', isCurrent ? 'text-bold' : '')}

tests/rendering-fixtures/playwright-rendering.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('use sidebar to go to Hello World page', async ({ page }) => {
3535
await expect(page).toHaveTitle(/Getting started with HubGit/)
3636

3737
await page.getByTestId('product-sidebar').getByText('Quickstart').click()
38-
await page.getByTestId('product-sidebar').getByRole('group', { name: 'Hello World' }).click()
38+
await page.getByTestId('product-sidebar').getByText('Hello World').click()
3939
await expect(page).toHaveURL(/\/en\/get-started\/quickstart\/hello-world/)
4040
await expect(page).toHaveTitle(/Hello World - GitHub Docs/)
4141
})

0 commit comments

Comments
 (0)