Add preset to color picker #14463
-
HI, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Easy enough! Just added for Craft 4.8 (e997d90). Looks like Firefox doesn’t support it yet for macOS or Android (https://bugzilla.mozilla.org/show_bug.cgi?id=1805397), but otherwise seems pretty well-supported. |
Beta Was this translation helpful? Give feedback.
-
Thank you for merging this! Until now, I have been using a color plugin just for this feature and would love to switch that field to a standard color field. What would be a good way to migrate data from the plugin back to the standard color field? |
Beta Was this translation helpful? Give feedback.
-
Thanks @brandonkelly, great work! A further improvement would be to have the list of presets at site or craft installation level to avoid repeating the same presets for each field. Perhaps it could be a configuration to be inserted in the config/general.php so that every single field can use the default one or have one just for itself. |
Beta Was this translation helpful? Give feedback.
Easy enough! Just added for Craft 4.8 (e997d90).
Looks like Firefox doesn’t support it yet for macOS or Android (https://bugzilla.mozilla.org/show_bug.cgi?id=1805397), but otherwise seems pretty well-supported.