[Menu]: a11y: ui5-menu popover exposes role="dialog" (aria-modal) instead of role="menu", inconsistent with an aria-haspopup="menu" opener
メンテナーはふだん 2 日以内に返信
@unazko がすでに取り組んでいます。
2026年10月29日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 289
- 平均マージ
- 4日 5時間
- マージ済み PR(30日)
- 33
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UI5/webcomponents のほかの issue
-
bug Medium Prio TOPIC RL
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
UI5/webcomponents#14310 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[ui5-li | ui5-list]: inner RadioButton announces 'Item Selection.' instead of option label in single-select mode (WCAG 4.1.2)対応中かも @PetyaMarkovaBogdanova が 19 日前に担当しました。 オープンACC bug Medium Prio TOPIC P
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
UI5/webcomponents#14273 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)再び着手できるかも @PetyaMarkovaBogdanova が 33 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug Medium Prio TOPIC P
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
UI5/webcomponents#14212 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
(ui5-search): Loading state sample is broken対応中かも @ndeshev が 33 日前に担当しました。 オープンbug Low Prio released TOPIC RL
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
UI5/webcomponents#14210 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
For IllustratedMessage title there should be support for setting Header level再び着手できるかも @plamenivanov91 が 33 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement Medium Prio TOPIC P
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
UI5/webcomponents#14162 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
UI5/webcomponents の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
can1357/oh-my-pi#21349 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ohcnetwork/care_fe#17474 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100