[Menu]: a11y: ui5-menu popover exposes role="dialog" (aria-modal) instead of role="menu", inconsistent with an aria-haspopup="menu" opener
Maintainer thường phản hồi trong vòng 2 ngày
@unazko đang làm issue này rồi.
Từ ngày 29/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- TypeScript
- Star
- 1.8k
- Fork
- 289
- Merge trung bình
- 4 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 33
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của UI5/webcomponents
-
[Bug] ui5-input: shadow DOM icon wrapper divs appear as "Blank" in screen reader browse modeĐang mởbug Medium Prio TOPIC RL
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
UI5/webcomponents#14310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[ui5-li | ui5-list]: inner RadioButton announces 'Item Selection.' instead of option label in single-select mode (WCAG 4.1.2)Có thể đã có người làm @PetyaMarkovaBogdanova đã nhận 19 ngày trước. Đang mởACC bug Medium Prio TOPIC P
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UI5/webcomponents#14273 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)Có thể làm lại được @PetyaMarkovaBogdanova đã nhận 33 ngày trước và không có pull request nào đang mở. Đang mởbug Medium Prio TOPIC P
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
UI5/webcomponents#14212 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
(ui5-search): Loading state sample is brokenCó thể đã có người làm @ndeshev đã nhận 33 ngày trước. Đang mởbug Low Prio released TOPIC RL
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
UI5/webcomponents#14210 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
For IllustratedMessage title there should be support for setting Header levelCó thể làm lại được @plamenivanov91 đã nhận 33 ngày trước và không có pull request nào đang mở. Đang mởenhancement Medium Prio TOPIC P
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
UI5/webcomponents#14162 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của UI5/webcomponents
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
can1357/oh-my-pi#21349 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[aw] CARE PR Reviewer: timed outĐang mởagentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ohcnetwork/care_fe#17474 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100