generatepress
generatepress copied to clipboard
RGB colors are messing up the saved color palette
Description
Cannot use RGB colors within Appearance > Customize > Colors. After saving and refreshing the Customizer, the colors that were saved as RGB variables are all missing.
Steps to reproduce
- Activate Generatepress.
- Go to Appearance > Customize > Colors.
- Set the accent color (last in the row) to
rgb( 255, 0, 0 )
(red). - You can see that the links will be red.
- Save changes with Publish button.
- Refresh the customizer page. (Important!)
- Accent color will be empty.
https://user-images.githubusercontent.com/10430702/198012358-2c456e30-dd4c-4fe6-a591-1066fd7b2196.mp4
Actual behavior
Cannot save RGB colors within Customizer.
Expected behavior
Support (or at least do not allow) the use of RGB colors.
References
https://generatepress.com/generatepress-3-1-global-colors-dynamic-typography/