Rails color_field: select initial picker mode (HEX instead of RGB)

278 views Asked by At

I need to customize Rails color_field picker to open in HEX mode initially. Its current default mode is RGB, but want to limit picker mode to HEX only.

color_field picker

1

There are 1 answers

0
BenFenner On

Assuming you're using the default HTML5 form field attributes, that picker is implemented by the client (browser) and you have no control over how it presents itself to the user.

Off topic: This is a good thing. The client should work for—and be under control of—the user, not the content provider.