ObjectPage: tabIndex=0 set on first ObjectPageSection even for single-section layout causing WCAG 2.1.1 keyboard accessibility violation
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Bug Description
When ObjectPage is used with a single ObjectPageSection, the component sets tabIndex=0 on that section after mount, making a non-interactive region focusable via the keyboard Tab key.
The library already handles the single section case — hasOnlySingleSection is calculated and used to hide the tab navigation bar. However, the tabIndex effect does not check hasOnlySingleSection and sets tabIndex=0 unconditionally. This is the roving tabindex pattern designed for navigating between multiple sections, which has no purpose when there is only one section.
This causes a WCAG 2.1.1 violation — a non-interactive
element appears as a wasted Tab stop in the keyboard tab order.Affected Component
ObjectPage, ObjectPageSection
Expected Behaviour
When there is only one ObjectPageSection, the section should not be added to the keyboard Tab order. The tabIndex should remain -1 since there are no other sections to navigate between.
Isolated Example
No response
Steps to Reproduce
- Render an ObjectPage with a single ObjectPageSection
- Open the page in a browser
- Open DevTools and inspect the element with data-component-name="ObjectPageSection"
- Press Tab to navigate through the page
- Observe that the element receives keyboard focus and has tabindex="0" set on it
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.27.2
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
SAP Labs
Declaration
- I’m not disclosing any internal or sensitive information.
- Linguagem predominante
- TypeScript
- Estrelas
- 541
- Forks
- 114
- Merge médio
- 21h 26min
- PRs com merge (30d)
- 82
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 UI5/webcomponents-react
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
UI5/webcomponents-react#8529 ·
Mantenedores costumam responder em até 1 dia
-
Design Pending SAP SF
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
UI5/webcomponents-react#8158 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
a11y Design Pending
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
UI5/webcomponents-react#7582 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
UI5/webcomponents-react#7546 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
UI5/webcomponents-react#6727 · 15 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de UI5/webcomponents-react
Issues semelhantes
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
openclaw/openclaw#182077 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
aikido high security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markTalvez já em andamento @eric8810 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
[Feature]: 建议导入源后,自动切换到新导入的源Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
lyswhut/lx-music-desktop#3026 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
abhigyanpatwari/GitNexus#3704 ·
Mantenedores costumam responder em até 1 dia