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

Consider exposing the block list orientation through block context #23778

Closed
talldan opened this issue Jul 8, 2020 · 3 comments
Closed

Consider exposing the block list orientation through block context #23778

talldan opened this issue Jul 8, 2020 · 3 comments
Labels
[Feature] Block API API that allows to express the block paradigm. [Type] Enhancement A suggestion for improvement.

Comments

@talldan
Copy link
Contributor

talldan commented Jul 8, 2020

Is your feature request related to a problem? Please describe.
A couple of use cases came up recently in the navigation block for adding spacing and separators:

The editor already has Spacer and Separator blocks, but one issue is that the Navigation block can work both horizontally and vertically, while spacer and separator blocks are currently limited to working vertical layouts.

Describe the solution you'd like
If orientation were exposed through block context, the spacer and separator blocks could potentially be written in such a way that they automatically work in both horizontal and vertical lists.

Describe alternatives you've considered

  • A specific setting for changing orientation on the Spacer and Separator blocks
@talldan talldan added [Type] Enhancement A suggestion for improvement. [Feature] Block API API that allows to express the block paradigm. labels Jul 8, 2020
@talldan talldan changed the title Consider exposing the block list orientation through Block Context Consider exposing the block list orientation through block context Jul 8, 2020
@tellthemachines
Copy link
Contributor

Closing as this has been addressed in #29133.

@talldan
Copy link
Contributor Author

talldan commented Jul 9, 2021

@tellthemachines The idea here is to expose it automatically when it's specified on innerBlocks, not just for the navigation block.

@talldan talldan reopened this Jul 9, 2021
@talldan
Copy link
Contributor Author

talldan commented Mar 9, 2023

This is a bit outdated and technically focused. I'll close it down.

@talldan talldan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants