presseddigital / colorit

A slick color picker fieldtype plugin for the Craft CMS control panel
Other
21 stars 8 forks source link

Bugfix for Presets don't show correct colors, defaults to light grey #32 #35

Open extensibleseth opened 3 years ago

extensibleseth commented 3 years ago

Accounts for Craft removing the leading '#' character from hex color values in the database by making it an optional criteria in isValidHex(), and adding it back in the field input, and preview.

https://github.com/presseddigital/colorit/issues/32

weotch commented 3 years ago

This fixed it for me, though I had to clear my compiled templates after switching to fork locally.

Caches - CMS 2021-07-09 at 11 02 50 AM