Skip to content

fix(role): derive accessible name from associated label for meter and progress#41914

Closed
aydinomer00 wants to merge 1 commit into
microsoft:mainfrom
aydinomer00:fix-41891
Closed

fix(role): derive accessible name from associated label for meter and progress#41914
aydinomer00 wants to merge 1 commit into
microsoft:mainfrom
aydinomer00:fix-41891

Conversation

@aydinomer00

Copy link
Copy Markdown
Contributor

Summary

  • <meter> and <progress> are labelable elements, but the accessible name computation had no branch for their associated <label> — so getByRole({ name }) and toHaveAccessibleName never matched them. <output> had the same gap (fixed in fix(role): compute <output> accessible name from labels #27415); this mirrors that handling.

Fixes #41891

… progress

<meter> and <progress> are labelable elements, but their accessible name
computation had no branch for the associated <label>, so getByRole({ name })
and toHaveAccessibleName could not match them. Mirror the <output> handling.

Fixes microsoft#41891
@dcrousso

Copy link
Copy Markdown
Contributor

thank you for opening a PR! i think we prefer the solution in #41911

@dcrousso dcrousso closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: <meter>/<progress> ignore associated <label> in accessible name; getByRole({ name }) and toHaveAccessibleName fail

2 participants