Allow disabling text and background color via theme.json#34420
Allow disabling text and background color via theme.json#34420
text and background color via theme.json#34420Conversation
|
This looks like it's working as expected. Is it planned to have the option to disable them only on a per block level or only on the global styles? |
|
If the theme is setting color options for a block like so: The per-block options are not available if they are set to false under settings, is this expected too? |
Yup, all settings (also styles) are available both at the global and block level. Once something new is added, it works everywhere. |
29c385a to
e65a888
Compare
|
Size Change: +79 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
|
@MaggieCabrera would you think you can help approve this if everything works as expected? |
yeah, this works as expected! |
Fixes #34414
Description
This also fixes the logic to show the subcomponents of the color panel:
link is enabled when all these conditions are met:
text is enabled when all these conditions are met:
background is enabled when all these conditions are met:
gradients is enabled when all these conditions are met:
As per #34414 we don't need a specific key for gradients.
How to test