Skip to content

Conversation

@BenHenning
Copy link
Collaborator

@BenHenning BenHenning commented Nov 26, 2025

The basics

The details

Resolves

Fixes #9464

Proposed Changes

Adds ARIA labels for Toolbox and Flyout ('s Workspace) containers to complement their existing region labels.

Reason for Changes

In some cases certain screen readers (like NVDA) don't read out region labels. Previously, only the region labels provided context for currently being within the toolbox or flyout, so adding additional labels on the ARIA tree containers themselves ensures that these contexts are always read if the tree's context is read.

This adds redundancy with the region output if both are read, but ChromeVox at least adds some delay between finishing the tree's context and beginning the region's context and this seems to mesh well together. The fully read context now feels like: "here's an item, it's the toolbox tree, and that tree is within the toolbox region." Even though both regions only contain a single tree it doesn't feel dimorphic.

Test Coverage

No new automated tests are needed for this experimental change.

This has been manually tested with ChromeVox to demonstrate the dual tree + region output for both toolbox and flyout:

Screen.recording.2025-11-26.2.52.22.PM.webm

Documentation

No new documentation is needed for this experimental change.

Additional Information

This was only tested on ChromeVox.

@github-actions github-actions bot added PR: feature Adds a feature and removed PR: feature Adds a feature labels Nov 26, 2025
Copy link
Collaborator Author

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spot check on code.

Mac CI failures seem to be existing but there are more than I'm used to seeing. I don't see why this change would cause any new issues, and the tests are still passing on Linux so this is likely not affecting those tests.

@BenHenning BenHenning marked this pull request as ready for review November 26, 2025 22:55
@BenHenning BenHenning requested a review from maribethb November 26, 2025 22:55
@BenHenning
Copy link
Collaborator Author

PTAL @maribethb.

/cc @microbit-robert in case you wanted to re-check this on the micro:bit side.

@microbit-robert
Copy link
Contributor

@BenHenning LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Screen reader] Trees should have aria-labels or aria-labelledby attributes

3 participants