Skip to content
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

Inner Blocks - Navigating with the Document Outline view #1320

Closed
pinarol opened this issue Aug 22, 2019 · 2 comments
Closed

Inner Blocks - Navigating with the Document Outline view #1320

pinarol opened this issue Aug 22, 2019 · 2 comments
Assignees
Labels
InnerBlocks [Type] Enhancement Improves a current area of the editor

Comments

@pinarol
Copy link
Contributor

pinarol commented Aug 22, 2019

Document Outline view is displayed once the user taps the breadcrumb on the Floating Toolbar. This is for navigating inside a complex hierarchy.

The scroll position should be arranged programmatically to make the selected block visible in the viewport. Please take a look at the prototype to get a sense of how it should behave.

This uses the existing Bottom Sheet component, we should be setting indentations to better visualize the hierarchy.

Screen Shot 2019-08-22 at 22 51 10

For most of the blocks it shows the title of the block, for text based blocks it shows a hint about the contained text.

@pinarol pinarol added [Type] Enhancement Improves a current area of the editor InnerBlocks labels Aug 22, 2019
@dratwas dratwas self-assigned this Sep 20, 2019
@pinarol
Copy link
Contributor Author

pinarol commented Sep 22, 2019

There's a possibility we can de-prioritize this a bit, let's talk before starting the implementation.

@dratwas
Copy link
Contributor

dratwas commented Sep 23, 2019

@pinarol
I already started the implementation but I'm in the early phase.
What is done :

  • show list of all block inside BottomSheet (not styled properly yet)
  • select correct block when clicked in the document outline
  • hide BottomSheet

What is left to do:

  • mark which block is selected in the document outline
  • scroll to the selected block inside document outline and after a click on an item inside
  • add styles and all requirements like show hint about the contained text for paragraph etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
InnerBlocks [Type] Enhancement Improves a current area of the editor
Projects
None yet
Development

No branches or pull requests

2 participants