ReqoreModal: the role="dialog" element has no accessible name (label and aria-label land on the inner panel)

オープン
#699 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

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

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

2026年10月6日 から。

評価

この issue はまだ評価されていません。

説明

What the landing page needs

Every dialog on the Qorus marketing site is a ReqoreModal with a label (and an aria-label). Screen readers announce them as an unnamed "dialog": the element that carries role="dialog" and aria-modal="true" (the Drawer's StyledWrapper) has no accessible name. The label renders in the inner ReqorePanel's header, and aria-label / aria-labelledby passed to the modal go to that inner panel (<ReqorePanel {...rest} …>), not to the dialog element. Testing Library's getByRole('dialog', { name }) cannot find any of them either (0.77.5; same on develop).

What would fix it

Name the role="dialog" element: aria-labelledby pointing at the panel's label element when there is a label, and pass a consumer's aria-label / aria-labelledby to the wrapper rather than to the panel. A story play: getByRole('dialog', { name: 'Modal title' }).

Meanwhile

Nothing on the site: there is no way to name the dialog element from outside without reaching into Reqore's DOM. The site's stories find the dialog by its role and check the title text inside it.

主要言語
TypeScript
スター
4
フォーク
0
平均マージ
16時間 28分
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

qoretechnologies/reqore のほかの issue

qoretechnologies/reqore の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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