[Menu]: a11y: ui5-menu popover exposes role="dialog" (aria-modal) instead of role="menu", inconsistent with an aria-haspopup="menu" opener
Los mantenedores suelen responder en 2 días
@unazko ya está trabajando en esto.
Desde el 29/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- accessibility, frontend
Línea de trabajo
Read packages/main/src/Popup.ts and MenuTemplate.tsx to trace the popover role default and how ui5-menu configures its ResponsivePopover. Check the related items #9313, #6810, and #6090 for context, then inspect the open menu’s accessibility tree. Done when the popup exposes the menu semantics without a competing dialog role or aria-modal wrapper.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When a trigger button declares aria-haspopup="menu" and opens a ui5-menu, the opened popup is not exposed as a menu. ui5-menu renders its items in a ResponsivePopover whose inner section is role="dialog" with aria-modal="true", wrapping the role="menu" list. A screen reader therefore announces a "menu button" on the opener but encounters a dialog containing the menu — an inconsistent popup semantic (WCAG 4.1.2 Name, Role, Value; 1.3.1).
A consumer cannot fix this from outside the component: the ResponsivePopover lives in ui5-menu's shadow DOM, ui5-menu exposes no prop to change the popover role, and the PopupAccessibleRole enum only offers None | Dialog | AlertDialog (no Menu).
Root cause (source)
Popup.accessibleRoledefaults to"Dialog"—packages/main/src/Popup.ts:178— which drives the sectionrole="dialog"(_role) andaria-modal="true"(_ariaModal).MenuTemplate.tsxwrapsList accessibleRole="Menu"in aResponsivePopoverwithout settingaccessibleRole, so the menu's popover inherits the"Dialog"default.
Isolated example
Any Button with aria-haspopup="menu" as the opener of a ui5-menu with a couple of ui5-menu-items. Inspect the accessibility tree with the menu open.
Expected behaviour
The opened popup's role matches the opener's aria-haspopup="menu" — i.e. the only popup role exposed is the List's role="menu" with its role="menuitem" children; no competing role="dialog" / aria-modal wrapper.
Actual behaviour
Accessibility tree (desktop):
dialog "Select an option from the menu" (aria-modal="true") <-- ResponsivePopover section
menu
menuitem "..."
menuitem "..."
Suggested fix
Have ui5-menu set its internal ResponsivePopover accessibleRole="None" (which makes _role and _ariaModal undefined) so the List's role="menu" is the sole exposed popup semantic. Popover focus management is handled by the focus-trap spans, so keyboard behaviour is unaffected.
Context
Found while verifying an SAP SuccessFactors accessibility defect: Approve/Decline "menu buttons" on the Home page open ui5-menu; aria-expanded toggles and role="menu"/role="menuitem" are present, but the popover wrapper is role="dialog". Related prior items: #9313 (Menu popover treated as a dialog, accessible name added), #6810 / #6090 (requests to allow a menu role on Popover).
UI5 Web Components version
2.x (reproduced on current main)
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 289
- Merge medio
- 4 d 5 h
- PR fusionados (30 d)
- 33
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de UI5/webcomponents
-
[Bug] ui5-input: shadow DOM icon wrapper divs appear as "Blank" in screen reader browse modeAbiertobug Medium Prio TOPIC RL
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
UI5/webcomponents#14310 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[ui5-li | ui5-list]: inner RadioButton announces 'Item Selection.' instead of option label in single-select mode (WCAG 4.1.2)Posiblemente ocupada @PetyaMarkovaBogdanova la tomó hace 19 días. AbiertoACC bug Medium Prio TOPIC P
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
UI5/webcomponents#14273 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)Quizá libre de nuevo @PetyaMarkovaBogdanova la tomó hace 33 días y no hay ningún pull request abierto. Abiertobug Medium Prio TOPIC P
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
UI5/webcomponents#14212 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
(ui5-search): Loading state sample is brokenPosiblemente ocupada @ndeshev la tomó hace 33 días. Abiertobug Low Prio released TOPIC RL
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
UI5/webcomponents#14210 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
For IllustratedMessage title there should be support for setting Header levelQuizá libre de nuevo @plamenivanov91 la tomó hace 33 días y no hay ningún pull request abierto. Abiertoenhancement Medium Prio TOPIC P
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
UI5/webcomponents#14162 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de UI5/webcomponents
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
can1357/oh-my-pi#21349 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
[aw] CARE PR Reviewer: timed outAbiertoagentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ohcnetwork/care_fe#17474 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100