Bug - Hex Color Codes Ignored

Tried pasting in a standard hex color code and it just ignores it and keeps it on transparent. Tried in every color picker in the headline element - like 5 of them - and they all ignore hex color codes.

Hi @co50,

Thank you for the heads up, I’ll add that to our issue tracker. In the meantime add the # character to your hex code manually (e.g. #1c3114).

Cheers!

Hi Greg,

Thanks for sharing this with us. In 2.4.2 we made the color picker accept more strict CSS input. This is so it can now store and remember your exact input instead of reformatting it all to rgb. For a more in-depth explaination take a look at this: https://theme.co/apex/forum/t/2-4-2-colorizer-value/49490/4

This is a regression, despite the explanation in the other thread. If the color entered is clearly a hex code, it should append the # automatically. There is no reason for it not to. If the input is 6 characters, add the #. If it’s not, then don’t add anything.

I’ll tell you why what you’ve changed here is shortsighted and problematic. Often, hex codes are copied from elsewhere. However the nature of double-click copy/paste means the # isn’t highlighted and therefore not copied with the hex code, so the user now has to add it in. So you’re enhancing usability for a small percentage of users who actually use color names in exchange for regressing usability for the majority. Weird call. I urge you to reconsider this.

Hi @co50,

Noted, but given with the feature and complexity of the library used for the color picker (Huebert) then it’s the best approach for now for solving most of the issues related to it.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.