Skip to content

Conversation

@BenHenning
Copy link
Collaborator

This is a temporary staging branch for core changes that will (hopefully) eventually be entirely moved to RaspberryPiFoundation/blockly-keyboard-experimentation#684.

Note that this may also serve as a reference for future longer-term design changes to core to accommodate screen reader feature requirements.

This will be closed once RaspberryPiFoundation/blockly-keyboard-experimentation#684 is ready for review.

This is intended to never be merged as-is. This branch only exists for
reference and staging purposes.
Conflicts:
	core/bubbles/bubble.ts
	core/workspace_svg.ts
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature labels Jul 29, 2025
Comment on lines +578 to +585
const nodeRole = node.getAriaRole();
const nodeLabel = node.getAriaLabel();
if (aria.getRole(elem) !== nodeRole) {
aria.setRole(elem, nodeRole);
}
if (aria.getState(elem, aria.State.LABEL) !== nodeLabel) {
aria.setState(elem, aria.State.LABEL, nodeLabel);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can't happen this late. Even more than tab index, this needs to be set as early as possible for an element in order to set up the a11y node tree correctly.

@BenHenning
Copy link
Collaborator Author

This has been functionally moved over to RaspberryPiFoundation/blockly-keyboard-experimentation#684 so closing it. It will still serve well as a reference for future long-term design considerations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant