Skip to content

fix: skip empty label fields and dummy/end row inputs for move announcements#9847

Merged
mikeharv merged 7 commits into
RaspberryPiFoundation:v13from
mikeharv:input-label-changes
May 11, 2026
Merged

fix: skip empty label fields and dummy/end row inputs for move announcements#9847
mikeharv merged 7 commits into
RaspberryPiFoundation:v13from
mikeharv:input-label-changes

Conversation

@mikeharv
Copy link
Copy Markdown
Contributor

@mikeharv mikeharv commented May 11, 2026

The basics

The details

Resolves

Fixes

Proposed Changes

This updates the way unlabeled inputs are counted, in order to skip dummy and end row inputs.
It also updates FieldLabel to allow for empty string ARIA labels (which are then ignored for input/block).
The before screenshot below shows incorrect input counting due to the presence of a dummy input. It also shows an 'empty' label due to a blank field that is used to assist in laying out the block.
image

After these changes, the input index is reported in a more intuitive way and the 'empty' label field is skipped entirely:
image

Reason for Changes

These changes are important in order to make sure that inputs are described more helpfully, and that superfluous block layout information is not conveyed to assistive technologies.

Test Coverage

New tests were added to ensure we do not count dummy and end row inputs when announcing moves involving unlabeled inputs.

@mikeharv mikeharv requested a review from a team as a code owner May 11, 2026 14:43
@mikeharv mikeharv requested a review from lizschwab May 11, 2026 14:43
@github-actions github-actions Bot added the PR: fix Fixes a bug label May 11, 2026
@mikeharv mikeharv marked this pull request as draft May 11, 2026 14:57
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels May 11, 2026
@mikeharv mikeharv changed the title fix: insert custom input label before children fix: skip empty label fields and dummy/end row inputs for move announcements May 11, 2026
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels May 11, 2026
@mikeharv mikeharv marked this pull request as ready for review May 11, 2026 16:38
Copy link
Copy Markdown
Contributor

@lizschwab lizschwab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the override issue is addressed this is good to merge

Comment thread packages/blockly/core/field_label.ts Outdated
Comment thread packages/blockly/core/block_aria_composer.ts
@mikeharv mikeharv merged commit aa1ec1e into RaspberryPiFoundation:v13 May 11, 2026
4 checks passed
@mikeharv mikeharv deleted the input-label-changes branch May 11, 2026 23:39
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