Provide means to enable/disable Global-level configuration of blocks #34206
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
While it's (theoretically*) possible for themes (via theme.json) to control what aspects a block has available for user control this disables access BOTH Globally (in the FSE Global Styles 'By Block' panel) as well as Locally (Block instance controls).
Because the two systems (Global ..er.. Global Styles and Local Block Styles) work differently it may be necessary to allow for GLOBAL but not LOCAL or LOCAL but not GLOBAL configuration of settings.
As an example; In the case of Blockbase the Global Style Mechanism for configuring button colors currently results in a poor user experience (hover states don't follow color choices, padding controls don't work, etc). It is desired that the Global Style configuration for Buttons be disabled by the theme (preferably just COLORS and PADDING, though disabling ALL Global Style Configurations for Buttons would also be groovy). LOCAL (block instance) controls of colors and padding work just as the user would expect and should remain in place.
Buttons have a long way to go before they can be appropriately styled Globally and until that effort is complete allowing a theme to decide and control which aspects of the GLOBAL style are provided to the user would mitigate that.
What is your proposed solution?
Provide configuration options in theme.json that allows for the enabling and disabling of Block-specific configuration controls in the FSE Global Styles panel.
Something such as:
The text was updated successfully, but these errors were encountered: