-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Continuation of Block Style Variations #7551
Copy link
Copy link
Open
Labels
CustomizationIssues related to Phase 2: Customization effortsIssues related to Phase 2: Customization efforts[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues
Milestone
Metadata
Metadata
Assignees
Labels
CustomizationIssues related to Phase 2: Customization effortsIssues related to Phase 2: Customization efforts[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues
Type
Fields
Give feedbackNo fields configured for issues without a type.
Once #7362 lands, we'll have the ability to register new block variations (based on classes) with automated previews. With this foundation there are further ideas of how this functionality could be extended.
Register New Styles
Themes / Plugins should be able to easily register new variations from the client or server.
Unregister Existing Styles
Themes / Plugins should be able to unregister existing block style variations for a specific block. (A plugin may also want to disable style variations entirely across all blocks.)
Change the Default
A Plugin / Theme might want to make a specific variation the default one for that block type.
User Defaults
A user might want to make a specific variation the default whenever they insert a new block of the type.
Custom User Styles
A user might be able to write a custom class (in the "Advanced" block tab) and register it as a block variation.
Concept:

Package Customizations as Classes
A user should be able to modify the aspect of a block (padding, font-size, etc) and save this not as inline styles but as a specific class to be reused. These don't necessarily have to become "style variations" but should be selectable in the advanced -> class input.
Show Style Variations in Class Selector
Style variations should also probably be exposed in the class selector.