The ref
values doesn't work on theme.json
block style variations since Gutenberg 18.7.0
#63159
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
After updating to Gutenberg 18.7.0 or Gutenberg 18.7.1, the
ref
values feature doesn't work on block style variations ontheme.json
. This works on the previous version Gutenberg 18.6.1.** This issue also happens on WordPress 6.6 RC versions (without Gutenberg installed)
Step-by-step reproduction instructions
Copy this snippet to the
theme.json
.We define the button element styling.
The normal
core/button
styling is inherited from the button element usingref
values.And then we want to change the outline button text color to use the button element's background color.
Screenshots, screen recording, code snippet
Expected result:
Result of Gutenberg 18.7, the outline button has the same text color as the normal button. This means, the
ref
value on theoutline
style variation doesn't work.Environment info
WordPress 6.5.5 + Gutenberg 18.7.1
or
WordPress 6.6 RC
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: