Skip to content

feat: use custom labels for block parent input labels#9867

Merged
maribethb merged 1 commit into
RaspberryPiFoundation:v13from
maribethb:input-label
May 13, 2026
Merged

feat: use custom labels for block parent input labels#9867
maribethb merged 1 commit into
RaspberryPiFoundation:v13from
maribethb:input-label

Conversation

@maribethb
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9837

Proposed Changes

Updates the getParentInputLabel to use the following logic:

If an input has a custom label, the custom label will be prepended
to the first child block connected to that input

If an input does not have a custom label, the input's fallback
label determined from the field row will be prepended to the
child block's label only if the following are true:

  • the parent block has at least one statement input
  • the child block in question is not attached to the first
    statement input of the parent block (in this case, the label
    would be redundant with the parent block's label)

Add Begin prefix to the label if the parent input is a statement input.

Reason for Changes

Improving screenreader experience for custom blocks

Test Coverage

Added tests (partially written by AI)

Documentation

Additional Information

@maribethb maribethb requested a review from a team as a code owner May 13, 2026 20:24
@maribethb maribethb requested a review from gonfunko May 13, 2026 20:24
@github-actions github-actions Bot added the PR: feature Adds a feature label May 13, 2026
@maribethb maribethb merged commit c8e0700 into RaspberryPiFoundation:v13 May 13, 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