Skip to content

Conversation

@alexstine
Copy link
Contributor

@alexstine alexstine commented Dec 10, 2021

Description

In the Site Editor, I added the screen reader text before the main heading 1 in to the heading 1 that way all text is read. Text should still remain visually hidden but the page should flow much better for screen reader users.

How has this been tested?

I tested using NVDA screen reader in Firefox on Windows 10.

Screenshots

Types of changes

Bug fix.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR (please manually search all *.native.js files for terms that need renaming or removal).

@alexstine alexstine self-assigned this Dec 10, 2021
@alexstine alexstine added [Feature] Full Site Editing [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Package] Edit Site /packages/edit-site [Type] Enhancement A suggestion for improvement. [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). labels Dec 10, 2021
@alexstine alexstine requested a review from talldan December 10, 2021 04:50
Copy link
Member

@kevin940726 kevin940726 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Maybe it'll be better to combine "Editing:" and the title together into a single translated text though, so that different locale can rearrange the order of them. But we can do that as a follow-up if needed.

@kevin940726 kevin940726 added the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Dec 10, 2021
@kevin940726
Copy link
Member

E2E tests are failing and seem related to this PR though.

@kevin940726 kevin940726 merged commit ef384b3 into WordPress:trunk Dec 10, 2021
@github-actions github-actions bot added this to the Gutenberg 12.2 milestone Dec 10, 2021
@alexstine alexstine deleted the add/sr-text-to-h1-editor branch December 10, 2021 07:03
@noisysocks noisysocks removed the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Dec 13, 2021
noisysocks pushed a commit that referenced this pull request Dec 13, 2021
* Site Editor: Document Actions: add SR text to heading 1.

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

Labels

[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Package] Edit Site /packages/edit-site [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants