Skip to content

Flesh out support for accessible name - #27

Open
hovinen wants to merge 1 commit into
support-hidden-ancestorsfrom
support-aria-label-and-labelledby
Open

hovinen wants to merge 1 commit into
support-hidden-ancestorsfrom
support-aria-label-and-labelledby

Conversation

@hovinen

@hovinen hovinen commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

This leverages DioxusLabs/blitz#1223 to greatly simplify how the accesssible name is accessed. The existing partial implementation of the accessible name algorithm is removed as redundant.

In particular, this allows selecting elements whose accessible name is given by the aria-label or aria-labelledby attributes.

Concretely, this is needed to reimplement some more of the Playwright tests of Dioxus components using dioxus-test.

@hovinen
hovinen added this pull request to stack #28 September 22, 2026 19:44
Base automatically changed from use-from-raw to main September 26, 2026 04:19
@ealmloff
ealmloff force-pushed the support-aria-label-and-labelledby branch from ac487c3 to 3bb80d6 Compare September 26, 2026 04:19
@hovinen hovinen self-assigned this Oct 3, 2026
@hovinen
hovinen requested a review from ealmloff October 3, 2026 11:47
@hovinen
hovinen force-pushed the support-aria-label-and-labelledby branch 2 times, most recently from 166a9a4 to 1c89013 Compare October 23, 2026 07:06
@hovinen
hovinen force-pushed the support-aria-label-and-labelledby branch from 1c89013 to 0be006c Compare October 24, 2026 13:39
@hovinen
hovinen removed this pull request from stack #28 October 24, 2026 13:44
@hovinen
hovinen changed the base branch from main to support-hidden-ancestors October 24, 2026 13:51
@hovinen
hovinen added this pull request to stack #42 October 24, 2026 13:51
@hovinen
hovinen removed this pull request from stack #42 October 24, 2026 13:57
@hovinen
hovinen added this pull request to stack #45 October 24, 2026 13:57
@hovinen hovinen changed the title Support aria label and labelledby Flesh out support for accessible name Oct 24, 2026
Blitz sets the accesskit label of a node according to the accessible name computation of the W3C
specification: `aria-label`, `aria-labelledby`, `<label>` elements, alternative text, and name from
content. Read the label from the node instead of recomputing it here, and remove the `aria_tree`
module, which implemented only a subset of the algorithm. The lookup of nodes by ID, which is all
that remains of it, moves into `query`.

This depends on the Blitz branch which provides this behavior.

As per step 2A of the specification, the content of a hidden element does not provide its name. So
remove the test and the examples which relied on matching hidden elements by that name.
@hovinen
hovinen force-pushed the support-aria-label-and-labelledby branch from 0be006c to cec1fec Compare October 30, 2026 14:04
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.

1 participant