Skip to content

feat: Announce usage hints to screenreaders on initial workspace focus#9871

Merged
gonfunko merged 7 commits into
v13from
first-focus
May 21, 2026
Merged

feat: Announce usage hints to screenreaders on initial workspace focus#9871
gonfunko merged 7 commits into
v13from
first-focus

Conversation

@gonfunko
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9621

Proposed Changes

This PR announces a brief message offering guidance on navigation and information on how to optimize Blockly for screenreader usage the first time that the workspace is focused.

@gonfunko gonfunko requested a review from a team as a code owner May 14, 2026 17:04
@gonfunko gonfunko requested a review from maribethb May 14, 2026 17:04
@gonfunko gonfunko changed the title First focus feat: Announce usage hints to screenreaders on initial workspace focus May 14, 2026
@github-actions github-actions Bot added the PR: feature Adds a feature label May 14, 2026
Copy link
Copy Markdown
Contributor

@maribethb maribethb left a comment

Choose a reason for hiding this comment

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

curious that the formatting changed on the en file but /shrug

Comment thread packages/blockly/core/workspace_svg.ts Outdated
* Whether this workspace has ever been focused. Used to announce usage hints
* to screenreaders on initial focus only.
*/
private everFocused = false;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This might be better as a global constant, since we really want it to show once per session. We wouldn't want it to repeat in the multiplayground (or more practically, in something like code.org's modal function editor)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made it static.

@gonfunko gonfunko merged commit 715e119 into v13 May 21, 2026
4 checks passed
@gonfunko gonfunko deleted the first-focus branch May 21, 2026 17:01
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