TomodomoCo / acf-color-picker-palette

Color picker palette for ACF
MIT License
1 stars 0 forks source link

Force selection of colours from palette #1

Closed chrisvanpatten closed 6 years ago

chrisvanpatten commented 6 years ago

The plugin currently allows you to enter an arbitrary colour or hex value, even if it's not available in the palette.

While this can be desired behaviour, some users may want to limit to only the pre-selected colours.

As an option, admins should be able to mark a field as "restrict entry to palette colors" (or something like that), and we should validate on submit and throw an error if an invalid colour is entered in the input.