Skip to content

fix: Block labels should not use custom input labels (nested inputs)#9916

Merged
mikeharv merged 2 commits into
RaspberryPiFoundation:v13from
microbit-robert:nested-input-labels
May 21, 2026
Merged

fix: Block labels should not use custom input labels (nested inputs)#9916
mikeharv merged 2 commits into
RaspberryPiFoundation:v13from
microbit-robert:nested-input-labels

Conversation

@microbit-robert
Copy link
Copy Markdown
Collaborator

@microbit-robert microbit-robert commented May 21, 2026

The basics

The details

Resolves

Builds on #9886 to ensure that block labels do not use custom input labels if the block contains nested value blocks, etc. This change also ensures commas are consistent between inputs for nested value blocks, etc.

Proposed Changes

Push useCustomLabels param through to the input getLabel method.

Reason for Changes

Current behaviour: Nested block has focus, block label is as expected:
Screenshot 2026-05-19 at 11 09 14

Current behaviour: Parent block has focus, block label for nested block is using custom input labels:
Screenshot 2026-05-19 at 11 09 25

This changes fixes scenario 2, so that the output is now:
Screenshot 2026-05-21 at 12 29 00

This seems to be missing a comma between "0 y", but will investigate this separately. Update: I pushed a change to fix this as well since it is trivial.

Test Coverage

None added.

Documentation

No

Additional Information

N/A

@microbit-robert microbit-robert requested a review from a team as a code owner May 21, 2026 11:31
@microbit-robert microbit-robert requested a review from mikeharv May 21, 2026 11:31
@github-actions github-actions Bot added the PR: fix Fixes a bug label May 21, 2026
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels May 21, 2026
Copy link
Copy Markdown
Contributor

@mikeharv mikeharv left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@mikeharv mikeharv merged commit d03f848 into RaspberryPiFoundation:v13 May 21, 2026
6 checks passed
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