ColorPalette: Labels do not change when CSS variables are used #41157
Labels
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
Related: #39386
In #39386,
name
andcolor
are now displayed on the palette when a color is selected from the color palette.It works correctly when the color has a HEX value, but the label is not rendered correctly when the color has a CSS variable.
I would expect that the label is probably not updated correctly at this point:
gutenberg/packages/components/src/color-palette/index.js
Lines 183 to 191 in 8b14921
Step-by-step reproduction instructions
On Block Theme
Define
theme.json
as follows:See Code
On Classic Theme
Define
functions.php
as follows:See Code
Screenshots, screen recording, code snippet
On Block Theme
block-theme.mp4
On Classic Theme
classic-theme.mp4
Environment info
No response
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: