Skip to content
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

Colors with opacity values not editable in Styles #43041

Closed
ellenbauer opened this issue Aug 6, 2022 · 3 comments · Fixed by #43045
Closed

Colors with opacity values not editable in Styles #43041

ellenbauer opened this issue Aug 6, 2022 · 3 comments · Fixed by #43045
Assignees
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@ellenbauer
Copy link

Description

Block themes can set rgba or hex color with opacity (Hexadecimal colors) in theme.json.

In the block editor these color values can be edited as the color picker has the opacity setting, as seen in the screenshot below.

Screen Shot 2022-08-06 at 11 57 07 AM

In Styles the color values can not be edited, which can be considered a bug, I feel. The opacity setting is not available and it is not possible to add the needed 8 values to the hex color settings, e. g. #FF000033 for the color red with 20% opacity.

Before editing the color in Styles:

Screen Shot 2022-08-06 at 11 58 25 AM

After trying to change the color value but keeping the 33 for opacity:

Screen Shot 2022-08-06 at 11 59 27 AM

Step-by-step reproduction instructions

  1. I would expect the same color settings in both editors.

  2. At least the hex value could allow 8 numbers, so the opacity could be maintained in the color value.

Screenshots, screen recording, code snippet

No response

Environment info

Wordpress 6.0.1
Theme Aino
Gutenberg plugin 13.8.1
Gutenberg plugin deactivated causes the same behaviour

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

@ndiego
Copy link
Member

ndiego commented Aug 6, 2022

@ellenbauer and @marceloaof when you have a chance, give #43045 a test and see if that resolved these issues. Thanks!

@ndiego ndiego self-assigned this Aug 6, 2022
@ndiego ndiego added [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement. labels Aug 6, 2022
@ellenbauer
Copy link
Author

@ndiego Amazing, Nick, I will test tomorrow, so exciting!!!

@ellenbauer
Copy link
Author

This works for me 😍 thanks so much for providing this solution @ndiego

@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants