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

Open
#699 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Foxhoundn is already working on this.

Since Oct 6, 2026.

Assessment

This issue has not been assessed yet.

Description

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.

Dominant language
TypeScript
Stars
4
Forks
0
Avg merge
16h 28m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qoretechnologies/reqore

All issues in qoretechnologies/reqore

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.