-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Block style for specific block variation #40621
Copy link
Copy link
Open
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Block VariationsBlock variations, including introducing new variations and variations as a featureBlock variations, including introducing new variations and variations as a feature[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Block VariationsBlock variations, including introducing new variations and variations as a featureBlock variations, including introducing new variations and variations as a feature[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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).