Block style for specific block variation #40621
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
After using (custom) block variations in a larger scale project, block styles seem to miss fine-grained control over when they appear in relation to variations.
Use case:
This is possible with a few lines of CSS, but the block editor UI has no way to know and shows all block styles for each group variation.
By giving theme developers more fine-grained control over which block styles appear to the end-user, based on the type of block variation(s), we can extend possibilities in styling, and clean-up valuable UI space.
What is your proposed solution?
I propose some more options when registering block styles (in php).
The text was updated successfully, but these errors were encountered: