Skip to content

feat: Add custom ARIA labels to built-in block dropdown field options#9880

Merged
mikeharv merged 1 commit into
RaspberryPiFoundation:v13from
mikeharv:built-in-fields
May 15, 2026
Merged

feat: Add custom ARIA labels to built-in block dropdown field options#9880
mikeharv merged 1 commit into
RaspberryPiFoundation:v13from
mikeharv:built-in-fields

Conversation

@mikeharv
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Partially fixes #9660

Proposed Changes

This adds a handful of new translatable strings that are used as ARIA labels in dropdown fields for built-in blocks*. ARIA labels are used as overrides for screen readers when focusing these fields if the normal visible label is not fully understandable when read aloud. For example, symbols like '=' or '#' are given as 'equals' or 'number'.
These changes are straight-forward as they aim to match existing labels verbatim. (The similar follow-up for input labels will require some contextual decisions that are more subjective.)

*Only the built-in blocks featured in the playground Categories toolbox were updated here.

image image

Reason for Changes

A full audit of the built-in blocks in the playground was performed at https://docs.google.com/document/d/1VTi1tXK3QrmOIqoDcZ6kjWGO9DzEiiW_CvDxRV4hlsA/edit?tab=t.0

Test Coverage

No tests were added but existing tests were updated that expect correct labels for blocks that were updated here.

@mikeharv mikeharv requested a review from a team as a code owner May 15, 2026 18:03
@mikeharv mikeharv requested a review from gonfunko May 15, 2026 18:03
@github-actions github-actions Bot added the PR: feature Adds a feature label May 15, 2026
@mikeharv mikeharv merged commit 4771cd4 into RaspberryPiFoundation:v13 May 15, 2026
9 checks passed
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.

2 participants