-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Gradient Picker not working with CSS variables #28254
Comments
@gwwar Can you help me understand how this is a help request rather than an issue? |
Sorry, I miscategorized this one. Are you still seeing this behavior with Gutenberg enabled? I noticed the original report was core 5.6 If something was fixed in Gutenberg 9.5, it should be available in the 5.7 WP line. https://developer.wordpress.org/block-editor/handbook/versions-in-wordpress/ |
Theme.json is not recognised by WP 5.7 without Gutenberg plugin, so this is still an issue. What more can I do to satisfy "Needs Testing" tag? |
@thetwopct This issue was briefly discussed during a triage session in slack (https://wordpress.slack.com/archives/C02QB2JS7/p1623131409378900). I mentioned on #20508 that I'm not sure what the level of support is for css variables. Up until recently this project had some support for IE11, so my understanding is that features like
The theme.json will now be introduced in WordPress 5.8, which is also the first version that won't support IE11. edit: I realise the docs for gradients are a little more vague, and still don't shed any light on whether css vars should be supported:
|
I am seeing this problem with all gradients added in theme.json. It is not limited to gradients that use CSS custom properties. The range slider does not update when a gradient is selected from the swatch. Clicking on the range slider or the type option reverts the gradient to a different one. WordPress 5.8 |
We hope this issue will be fixed at the end of Gutenberg phase 2 in WordPress 6.3. We believe that the improvements in this issue will be very useful for designing useful block themes in theme.json and using them to build websites in the site editor. |
Still seeing this bug as of WP 6.4.1. Do we have any workaround or update as to timing of this fix? |
Description
Step-by-step reproduction instructions
Open the editor, add a Group block and apply a gradient background to it
The color picker work with the Hex, RGBA and named colors, but the CSS variables are not being picked up by the color picker
Expected behaviour
CSS variables to get added to the gradient color picker as a range
Actual behaviour
CSS variables are not added to the gradient color picker as ranges
Screenshots or screen recording
(The 4th swatch contains the CSS variable gradient)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: