Bug - PageSidebar - collapsed sidebar is aria-hidden but its navigation links stay in the tab order
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 74/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- react, typescript
- Domínio
- accessibility, frontend
Direção de pesquisa
Comece em packages/react-core/src/components/Page/PageSidebar.tsx e acompanhe como a barra lateral gerenciada lida com seu estado recolhido e seus descendentes focalizáveis. Reproduza o problema com um PageSidebar contendo um Nav abaixo do breakpoint xl e, em seguida, verifique se os links da navegação recolhida não podem receber foco pelo teclado enquanto a barra lateral estiver aria-hidden.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 859
- Forks
- 395
- Merge médio
- 3d 13h
- PRs com merge (30d)
- 15
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de patternfly/patternfly-react
-
fix(table): CollapseColumn uses wrong caret icon for expandable row toggleTalvez já em andamento @redhat-chai-bot assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
patternfly/patternfly-react#12727 ·
Mantenedores costumam responder em até 1 dia
-
Bug - Label - Doesn't allow ref forwardingTalvez já em andamento @tarunvashishth assumiu há 28 dias. AbertaPF Team Stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
patternfly/patternfly-react#12651 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Bug - [Menu] - Flyout stays open when hovering a disabled itemTalvez já em andamento @fallmo assumiu há 64 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
patternfly/patternfly-react#12637 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
PF Team Stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
patternfly/patternfly-react#12617 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
PF Team Stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
patternfly/patternfly-react#12610 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de patternfly/patternfly-react
Issues semelhantes
-
[Site] Active section detection should respect scroll-margin-topTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea/web reproduced type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
anomalyco/opencode#65384 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
swc-project/swc-ai-issues#1001 ·
-
Add: Da Vinci Asia VietnamAbertacheck:passed streams:add
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
lightdash/lightdash#33086 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
assessment bug course exercise programming
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Mantenedores costumam responder em até 1 dia