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

Make it possible to assign more than one style at a time using registerBlockStyle() #11582

Closed
garciaalvaro opened this issue Nov 7, 2018 · 2 comments
Labels
Customization Issues related to Phase 2: Customization efforts [Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.
Milestone

Comments

@garciaalvaro
Copy link

Is it possible to assign more than one style using registerBlockStyle()?

For example a block could have a style which relates to the position of the elements and another to borders. So instead of having:

  • horizontal layout with border
  • horizontal layout without border
  • vertical layout with border
  • vertical layout without border

We could simply assign two styles at a time and have:

  • horizontal layout
  • vertical layout
  • with border

This is just a basic example but I think it can be extended to many other cases. Thanks.

@chrisvanpatten chrisvanpatten added [Type] Enhancement A suggestion for improvement. Customization Issues related to Phase 2: Customization efforts [Feature] Extensibility The ability to extend blocks or the editing experience labels Nov 7, 2018
@chrisvanpatten
Copy link
Contributor

Right now you can only select one block style at a time, but being able to select multiple is interesting. They are applied as CSS classes so you can also just apply the styles in the "additional CSS" field in the "advanced" inspector panel, but I can see how it'd be useful to have a visual interface.

@desrosj desrosj added this to the Future: Phase 2 milestone Nov 7, 2018
@gziolo gziolo changed the title Is it possible to assign more than one style at a time using registerBlockStyle()? Make it possible to assign more than one style at a time using registerBlockStyle() Apr 16, 2019
@youknowriad
Copy link
Contributor

Closing this as duplicate of #14598 there seem to be more discussions there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customization Issues related to Phase 2: Customization efforts [Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants