WritingFlow in navigation mode doesn't scroll the page #22420
Labels
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Describe the bug
When the editor is switched to "navigation mode", the WritingFlow component is supposed to make the Tab and Down / Up arrow keys navigate from block to block.
Actually, the blocks are selected but the page doesn't scroll. In a page with long content, this defeats the whole purpose of WritingFlow as the selected block doesn't ever come into view.
To reproduce
Steps to reproduce the behavior:
Note that in this context, the term "selected" refers to the Gutenberg block selection mechanism, not the DOM selection methods.
Animated GIF to better illustrate:
In the scenario above, I wonder how this block navigation mechanism is of any help for sighted keyboard users.
Expected behavior
The page to scroll and the "selected" block to be into the screen view.
Browsers details
Editor version (please complete the following information):
Additional context
Code responsible for this behavior:
gutenberg/packages/block-editor/src/components/writing-flow/index.js
Lines 379 to 410 in c327f19
The text was updated successfully, but these errors were encountered: