Skip to content

fix: use placeholder for empty inputs in block labels#9987

Merged
mikeharv merged 2 commits into
RaspberryPiFoundation:mainfrom
mikeharv:empty-value-input
Jun 12, 2026
Merged

fix: use placeholder for empty inputs in block labels#9987
mikeharv merged 2 commits into
RaspberryPiFoundation:mainfrom
mikeharv:empty-value-input

Conversation

@mikeharv

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9924

Proposed Changes

When computing a block label, if we encounter an empty value input, insert a placeholder so something is read. Use the existing INPUT_LABEL_EMPTY translation string, or 'Empty' in English. This is restricted for standard or greater verbosity so that it's not also included when focusing the input or when disambiguating inputs for move mode announcements.
image
image

Reason for Changes

Empty value inputs are not exposed to screen readers effectively, either as , or nothing at all.

Test Coverage

Existing tests for the Information (I) shortcut were updated as the placeholder is now expected to be used for the empty boolean value input on a new controls_if block.

@mikeharv mikeharv requested a review from a team as a code owner June 12, 2026 18:33
@mikeharv mikeharv requested a review from gonfunko June 12, 2026 18:33
@github-actions github-actions Bot added the PR: fix Fixes a bug label Jun 12, 2026
@mikeharv mikeharv merged commit 1a5e7e5 into RaspberryPiFoundation:main Jun 12, 2026
4 checks passed
@mikeharv mikeharv deleted the empty-value-input branch June 12, 2026 19:30
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.

[13.0.0-beta.6] Empty value inputs are not surfaced in the block labels

2 participants