Opened 7 days ago
Last modified 6 days ago
#65263 new defect (bug)
Colors from theme.json doesnt parse for hover states
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 7.0.1 | Priority: | normal |
| Severity: | normal | Version: | 7.0 |
| Component: | Editor | Keywords: | needs-testing |
| Focuses: | javascript, css | Cc: |
Description
When using variables from the theme.json, the value is not parsed and doesn't save in the hover state for buttons.
You can test going to the site editor > styles > blocks > button & selecting a color from the theme.json in the hover state. It is not going to save unless you use a raw value that were not been saved in the theme.
https://yourwp.local/wp-admin/site-editor.php?p=%2Fstyles§ion=%2Fblocks
If it somehow work with the default colors, try create a new one in the theme.json
thank you
Change History (3)
#3
@
6 days ago
- Version set to trunk
@tonnysantana thanks for this! And welcome to Trac!
It's possible that this may require some discussion upstream in the Gutenberg repository. Could you open an issue there as well?
I'm unclear whether this is a regression specific to 7.0 or not, so re-adding the trunk version until that can be clarified.
Removing
trunkversion as this is not going to be shipped with WP 7.0 but in the next releases.