[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)

オープン 初心者向け
#14,212 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@PetyaMarkovaBogdanova がすでに取り組んでいます。

2026年10月29日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

src/SelectTemplate.tsxから始め、_ariaRoleDescriptionをたどってsrc/i18n/messagebundle.propertiesのSELECT_ROLE_DESCRIPTIONエントリを確認してください。selectコンボボックスに期待されるアクセシビリティの動作を確認し、レンダリングされたARIA属性に関する既存のテストを調べてください。コントロールがコンボボックスのロールに沿って一貫して読み上げられ、関連するテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug Medium Prio TOPIC P
Describe the bug

We got a customer issue
The ui5-select root element renders two conflicting ARIA semantics on the same node:

  • role="combobox"
  • aria-roledescription="Listbox"

Because aria-roledescription overrides how assistive technology announces the
element's role, a control that is implemented and behaves as a combobox is
announced to screen-reader users as a "Listbox". This is contradictory and
creates confusion about how to interact with the control (a listbox and a
combobox have different interaction models and keyboard expectations).

A consuming application cannot correct this: the ARIA is set inside the
component's shadow DOM, and ui5-select exposes no public property to override
role or aria-roledescription (only accessibleName, accessibleNameRef,
accessibleDescription, accessibleDescriptionRef).

Source (confirmed in v2.28.1)

src/SelectTemplate.tsx — the .ui5-select-label-root div:

<div
  class="ui5-select-label-root"
  role="combobox"
  aria-haspopup="listbox"
  aria-roledescription={this._ariaRoleDescription}   // <-- resolves to "Listbox"
  aria-expanded={this._isPickerOpen}
  ...
>

_ariaRoleDescription resolves to the i18n key SELECT_ROLE_DESCRIPTION, whose
value in src/i18n/messagebundle.properties is:

  SELECT_ROLE_DESCRIPTION=Listbox

So the final DOM is role="combobox" + aria-roledescription="Listbox".

Isolated Example

No response

Reproduction steps
  1. Go to https://ui5.github.io/webcomponents-react/v2/?path=/docs/inputs-select--docs
  2. Inspect the shadow DOM .ui5-select-label-root → it has role="combobox" and aria-roledescription="Listbox".
  3. With a screen reader (JAWS/NVDA/VoiceOver), focus the control → it is announced as a "Listbox" while behaving as a combobox.
Expected Behaviour

No response

Screenshots or Videos

No response

UI5 Web Components for React Version

2.28.1

UI5 Web Components Version

2.28.1

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

No response

Declaration
  • I’m not disclosing any internal or sensitive information.
主要言語
TypeScript
スター
1.8k
フォーク
290
平均マージ
3日 12時間
マージ済み PR(30日)
54

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

UI5/webcomponents のほかの issue

UI5/webcomponents の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。