Unable to add presets with same slug as default preset via theme.json #59893
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Description
Are default presets such as
colors
,shadows
immutable? Should they?When default presets are enabled, adding a new preset (color or shadow) with the same slug as default preset, it neither adds it to the theme presets, nor overrides the default preset.
Note: slug
black
is given valuered
for testingWhere as when default presets are disabled, it allows to add with same slug.
It is also the same case for other presets.
Are the default presets (core presets) immutable by design?
Step-by-step reproduction instructions
Add a new color or shadow preset with same slug in theme.json.
Observe that the new value (theme preset) isn't available for use.
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: