Gallery block: Gap set in theme.json is overwritten by default value #60505
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
[Type] Bug
An existing feature does not function as intended
Description
If you set a custom
blockGap
value on the gallery block in theme.json, that CSS is output in the editor and on the front-end, but it's overwritten by the CSS for the default value which has a higher specificity.This is the CSS output for the theme.json value, with a 0.1.0 specificity:
And this is the CSS output for the default value, with a 0.2.0 specificity:
Expected behavior
The blockGap value set in theme.json should overwrite the default value.
Step-by-step reproduction instructions
styles.blocks.core/gallery.spacing
, and add"blockGap": "200px"
.Screenshots, screen recording, code snippet
Environment info
WordPress 6.5
With or without Gutenberg 18.0.0 active
Twenty Twenty-Four 1.1
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: