Skip to content

Improve toggle field editor for screen reader users#11417

Merged
riknoll merged 2 commits into
microsoft:masterfrom
microbit-robert:field-toggle-sr
Jun 26, 2026
Merged

Improve toggle field editor for screen reader users#11417
riknoll merged 2 commits into
microsoft:masterfrom
microbit-robert:field-toggle-sr

Conversation

@microbit-robert

Copy link
Copy Markdown
Contributor

This is a field editor that is edited immediately with 'Enter' or 'Space' rather than popping up an editable element or dialog. As a result, it needs a slightly different approach to other field editors. This moves the aria-label into a child element as text and attaches an aria-live attribute to the focusable element. This ensures that the value is output correctly on initial focus and also provides feedback to the user when they change the value of the toggle.

@riknoll riknoll enabled auto-merge (squash) June 26, 2026 18:13
@riknoll riknoll added this pull request to the merge queue Jun 26, 2026
Merged via the queue into microsoft:master with commit 720e464 Jun 26, 2026
12 checks passed
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.

3 participants