Skip to content

feat: Adjacent label fields are combined when composing ARIA labels#9873

Open
lizschwab wants to merge 1 commit into
RaspberryPiFoundation:v13from
lizschwab:9855
Open

feat: Adjacent label fields are combined when composing ARIA labels#9873
lizschwab wants to merge 1 commit into
RaspberryPiFoundation:v13from
lizschwab:9855

Conversation

@lizschwab
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9855

Proposed Changes

When composing an ARIA label, adjacent field labels will now be combined together so that they no longer have commas separating them.

Reason for Changes

The way some custom blocks are composed, multiple field labels are sometimes generated which are visually part of the same label but which were being separated by commas in the ARIA label. This fixes it so that the screen reader and visual experience are closer aligned.

Test Coverage

Added and updated unit tests and manually tested with a custom block in the playground.

@lizschwab lizschwab requested a review from a team as a code owner May 14, 2026 20:34
@lizschwab lizschwab requested a review from gonfunko May 14, 2026 20:34
@lizschwab lizschwab changed the base branch from main to v13 May 14, 2026 20:35
@lizschwab lizschwab changed the title 9855 feat: Adjacent label fields are combined when composing ARIA labels May 14, 2026
@github-actions github-actions Bot added the PR: feature Adds a feature label May 14, 2026
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.

coalesce adjacent label fields

2 participants