Skip to content

fix: Field text hidden from ARIA#9734

Merged
lizschwab merged 1 commit intoRaspberryPiFoundation:v13from
lizschwab:rpf-9655
Apr 17, 2026
Merged

fix: Field text hidden from ARIA#9734
lizschwab merged 1 commit intoRaspberryPiFoundation:v13from
lizschwab:rpf-9655

Conversation

@lizschwab
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9655

Proposed Changes

Field text elements are aria-hidden by default.

Reason for Changes

With the aria label changes in place we no longer need text on the elements to be visible to assistive technology. With these changes, the accessibility tree goes from looking like this:
Screenshot 2026-04-16 at 10 58 31 AM
to looking like this:
Screenshot 2026-04-16 at 10 59 27 AM

Test Coverage

Added a unit test which ensures field text elements get the aria-hidden=true attribute.

Documentation

Changes to the Field.createTextElement_() method documentation are included in this PR.

@lizschwab lizschwab requested a review from a team as a code owner April 17, 2026 22:01
@lizschwab lizschwab requested a review from gonfunko April 17, 2026 22:01
@github-actions github-actions bot added the PR: fix Fixes a bug label Apr 17, 2026
@lizschwab lizschwab merged commit 2903ec9 into RaspberryPiFoundation:v13 Apr 17, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants