-
Notifications
You must be signed in to change notification settings - Fork 4.8k
List view: scroll to selected element #36583
Copy link
Copy link
Closed
Labels
[Feature] List ViewMenu item in the top toolbar to select blocks from a list of links.Menu item in the top toolbar to select blocks from a list of links.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
The Block List's current behaviour is to highlight the item in the list that corresponding with the selected block in the editor.
When using the Block List to navigate around very long posts however, especially those that have plenty of nested blocks, the highlighted Block List item might be hidden deep within the scroll overflow.
Nov-18-2021.08-25-25.mp4
What is your proposed solution?
Initially raised by @gwwar in https://github.com/WordPress/gutenberg/pull/35817/files#r736696988, it might be worth exploring whether we could jump to the Block List item when a block is selected, even if that item isn't in the viewport or hasn't yet loaded in the DOM.
It would interact well with efforts to expand nested list items.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] List ViewMenu item in the top toolbar to select blocks from a list of links.Menu item in the top toolbar to select blocks from a list of links.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.