eightshift-frontend-libs icon indicating copy to clipboard operation
eightshift-frontend-libs copied to clipboard

Global manifest schema implies only hex values are supported in color declarations, which is not true

Open mbmjertan opened this issue 2 years ago • 0 comments

Describe your bug

Screenshot 2022-10-05 at 17 11 30

Steps to Reproduce

If this is contained in the globalVariables.colors in the global blocks manifest, you'll get a warning from a JSON schema-supporting editor:

			{
				"name": "Black / 25%",
				"slug": "black-opacity-25",
				"color": "rgba(14, 3, 37, 0.25)"
			}

Expected behavior

Using RGBA values is supported, so this shouldn't trigger a warning.

Support in color picker component:

Screenshot 2022-10-05 at 17 17 46

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

Please confirm that your bug occurs with all plugins uninstalled and with the default WordPress theme active.

No

mbmjertan avatar Oct 05 '22 15:10 mbmjertan