Skip to content

fix: add comma to block labels except on Apple devices - #10279

Open
mikeharv wants to merge 2 commits into
RaspberryPiFoundation:mainfrom
mikeharv:os-comma
Open

fix: add comma to block labels except on Apple devices#10279
mikeharv wants to merge 2 commits into
RaspberryPiFoundation:mainfrom
mikeharv:os-comma

Conversation

@mikeharv

@mikeharv mikeharv commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #10185

Proposed Changes

Conditionally adds a comma to the end of valid block ARIA labels except on Apple devices.

Reason for Changes

NVDA (and probably JAWS) output information as "...has input statement" which might be confusing for some users. VoiceOver automatically places commas between the aria-label and aria-roledescription, so outputs "...has input, statement".

It is not possible to detect what screen reader is in use, if any. This uses OS as a proxy so that the users with the most common screen reader readers will get the optimal output.

Test Coverage

3 tests needed to be relaxed as the expected strings did not each include an ending comma.

I tested for regressions on my Mac and found none. I was not able to manually test on Windows, but I believe the fix is straight-forward enough.

@github-actions github-actions Bot added the PR: fix Fixes a bug label Aug 17, 2026
@mikeharv
mikeharv marked this pull request as ready for review August 17, 2026 18:56
@mikeharv
mikeharv requested a review from a team as a code owner August 17, 2026 18:56
@mikeharv
mikeharv requested a review from maribethb August 17, 2026 18:56
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Aug 17, 2026
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.

Missing commas at end of aria-labels

2 participants