-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Description
Issues discovered in this comment: #61168 (comment)
For example, NVDA reads the element's label, role, and description when an element is focused. However, for focusable elements in the block toolbar, it does speak the description of the previously focused element, and in my testing, it appears to speak the focused element's label twice.
Users who use screen readers will be very confused because the read-out label and description do not match.
According to this comment, it seems that this issue first appeared in Gutenberg 19.2. Also, since this issue also occurs in WordPress 6.7 Beta1, it is necessary to identify the commit that caused the problem and fix it within the 6.7 cycle.
Step-by-step reproduction instructions
Below are the test steps when using Windows OS and NVDA.
WordPress 6.6.2
Everything is read correctly. In my testing, the screen reader basically reads out the label, role and description of the focused element.
- Open the post editor.
- Insert two Paragraph blocks.
- Select the First paragraph block.
- Press
Shift+Tabto focus the block switcher button in the block toolbar. the screen reader should read:Edit Post “Test” ‹ gutenberg — WordPress document main landmark Editor content region Block tools tool bar Paragraph menu button collapsed subMenu Change block type or style - Press the right arrow key to focus the "Move up" button. The screen reader should read:
Move up button unavailable Block Paragraph is at the beginning of the content and can’t be moved up - Press the right arrow key to focus the "Move down" button. The screen reader should read:
Move down button Move Paragraph block from position 1 down to position 2 - Press the right arrow key to focus the "Align text" button. The screen reader should read:
Align text menu button collapsed subMenu Change text alignment
WordPres 6.7 Beta1 or Gutenberg 19.4.0-rc.1
All of these are incorrect. In my testing, screen readers read a description of the previously focused element, the label of the focused element, the role of the focused element and the label of the focused element.
- Open the post editor.
- Insert two Paragraph blocks.
- Select the First paragraph block.
- Press
Shift+Tabto focus the block switcher button in the block toolbar. the screen reader should read:Edit Post “Test” ‹ gutenberg — WordPress document main landmark Editor content region Block tools tool bar Paragraph menu button collapsed subMenu Paragraph - Press the right arrow key to focus the "Move up" button. The screen reader should read:
Change block type or style Move up button unavailable Move up - Press the right arrow key to focus the "Move down" button. The screen reader should read:
Block Paragraph is at the beginning of the content and can’t be moved up Move down button Move down - Press the right arrow key to focus the "Align text" button. The screen reader should read:
Move Paragraph block from position 1 down to position 2 Align text menu button collapsed subMenu Align text
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes