-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
[Feature] ColorsColor managementColor management[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Describe the bug
When selecting a colorspace in a ColorPicker component, I would expect that the colorspace is respected for output. It appears things are ran through tinycolor and just out put as RGB for custom colors inline.
To Reproduce
Steps to reproduce the behavior:
- Add a paragraph block.
- Open the ColorPicker from the ColorPalette.
- Change the colorspace to HSL.
- Change the background color to some custom color using the control.
- Inspect the editor where the background color was changed. Take not that the color was applied in the editor as RGB (despite having selected HSL).
- Save and publish the post.
The result is that the background color has now been set to a HEX value on the frontend.
Expected behavior
I expected to see the chosen colorspace respected for frontend (and in-editor) output. In the editor it appears that the colors are all applied as RGB, and the frontend are all applied in HEX.
Desktop (please complete the following information):
- OS: Ubuntu 18.04.1 LTS
- chrome
- Version 69.0.3497.92 (Official Build) (64-bit)
Additional context
- Gutenberg 4.3.0
Metadata
Metadata
Assignees
Labels
[Feature] ColorsColor managementColor management[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.A suggestion for improvement.