Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

ObjectPage: tabIndex=0 set on first ObjectPageSection even for single-section layout causing WCAG 2.1.1 keyboard accessibility violation

Ouverte
#9,080 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Lukas742 y travaille déjà.

Depuis le 23/10/2026.

  • #9093 par @Lukas742 — ouverte

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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
  1. Render an ObjectPage with a single ObjectPageSection
  2. Open the page in a browser
  3. Open DevTools and inspect the element with data-component-name="ObjectPageSection"
  4. Press Tab to navigate through the page
  5. 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.
Langage dominant
TypeScript
Étoiles
541
Forks
114
Merge moyen
21 h 26 min
PR mergées (30 j)
82

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de UI5/webcomponents-react

Toutes les issues de UI5/webcomponents-react

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.