-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix site editor switch mode message. #48136
Conversation
Size Change: -5 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 01db636. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4202466865
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @afercia!
ea152df
to
01db636
Compare
Performance tests were failing for unrelated (?) reasons. Restarted the job with no success. Rebased on top of latest trunk in the hope it unblocks the failing jobs. |
That’s a known issue, @afercia. |
Thanks @Mamaduka. I'm not sure I have the permissions to merge this PR though. |
What?
When switching the Site Editor mode from Visual editor to Code editor and vice-versa, an audible
speak
message is supposed to be provided for screen reader users:gutenberg/packages/edit-site/src/store/actions.js
Lines 527 to 531 in 11525f7
Turns out there's no 'mosaic' mode so when switching to 'Code' nothing is announced.
To. my understanding, a 'Mosaic View' was tried in #33770 but the PR was closed and never merged. Nonetheless, the reference to a 'mosaic' mode was added in #37765
Why?
A proper audible message should be provided when switching to Code mode.
How?
Fixes the mode value used for a conditional and changes the related translatable string.
Testing Instructions
a11y-speak-assertive
is:Code editor selected
.a11y-speak-assertive
is:Visual editor selected
.Testing Instructions for Keyboard
Screenshots or screencast