Bug - PageSidebar - collapsed sidebar is aria-hidden but its navigation links stay in the tab order
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- accessibility, frontend
Research direction
Start in packages/react-core/src/components/Page/PageSidebar.tsx and trace how the managed sidebar handles its collapsed state and focusable descendants. Reproduce the issue with a PageSidebar containing a Nav below the xl breakpoint, then check that collapsed navigation links cannot receive keyboard focus while the sidebar is aria-hidden.
Written by the indexing model from the issue text.
Description
Describe the problem
When the Page sidebar collapses, PageSidebar renders aria-hidden={!sidebarOpen} (current main, packages/react-core/src/components/Page/PageSidebar.tsx), but nothing removes its descendants from the focus order (no inert, no tabindex="-1", and the content stays rendered). Keyboard users can Tab into a region that assistive technology is told does not exist (axe aria-hidden-focus, WCAG 4.1.2).
Observed in Keycloak 26.8.1's Admin Console (PatternFly 5 Page / PageSidebar with a nav), below the xl breakpoint where the sidebar collapses (320 and 390 CSS px): the collapsed sidebar is aria-hidden="true" while its navigation links (#nav-item-realms, #nav-item-clients, … #nav-item-user-federation) remain in the tab order.
How do you reproduce the problem?
- Render a
Pagewith a managedPageSidebarcontaining aNavwith links. - Narrow the viewport below the
xlbreakpoint so the sidebar collapses. - Run axe, or press Tab from the masthead and watch focus enter the hidden sidebar.
Expected behavior
A collapsed, aria-hidden sidebar is also removed from the focus order (inert on the sidebar, tabindex="-1" on its focusable descendants, or not rendering the content while collapsed).
Is this issue blocking you?
No. Workaround: none applied; the affected product is Keycloak's Admin Console.
What is your environment?
macOS, Chromium-based browser, PatternFly 5 as bundled in Keycloak 26.8.1; aria-hidden={!sidebarOpen} without inert is still present on main.
Any other information?
Found with axe while testing a themed Keycloak 26.8.1 Admin Console at narrow widths.
Jira Issue: PF-4746
Jira Issue: FELT-4741
- Dominant language
- TypeScript
- Stars
- 859
- Forks
- 395
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 15
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from patternfly/patternfly-react
-
fix(table): CollapseColumn uses wrong caret icon for expandable row togglePossibly taken @redhat-chai-bot claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
patternfly/patternfly-react#12727 ·
Maintainers usually reply within 1 day
-
Bug - Label - Doesn't allow ref forwardingPossibly taken @tarunvashishth claimed this 28 days ago. OpenPF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
patternfly/patternfly-react#12651 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug - [Menu] - Flyout stays open when hovering a disabled itemPossibly taken @fallmo claimed this 64 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
patternfly/patternfly-react#12637 · 1 comment ·
Maintainers usually reply within 1 day
-
PF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
patternfly/patternfly-react#12617 · 2 comments ·
Maintainers usually reply within 1 day
-
PF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
patternfly/patternfly-react#12610 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in patternfly/patternfly-react
Similar issues
-
[Site] Active section detection should respect scroll-margin-topPossibly taken A pull request linked to this issue is open or already merged. Openarea/web reproduced type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anomalyco/opencode#65384 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-ai-issues#1001 ·
-
check:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationOpen
Difficulty 1/5 Under an hour Newbie friendliness 85/100
lightdash/lightdash#33086 · 1 comment ·
Maintainers usually reply within 1 day
-
assessment bug course exercise programming
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day