You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
edwardsdesign
changed the title
Allow for shorthand HEX (#f0f...) and RGB/RGBA for Input Color
REQUEST: Allow for shorthand HEX (#f0f...) and RGB/RGBA for Input Color
Sep 27, 2016
I'm not sure how we'd handle this from a UX perspective.
Right now, on each keypress for the input field, we validate that the character being entered is a valid hexadecimal value. Once that field has 6 characters, the rest of the UI renders (cause we know it's a color).
Allowing shorthand HEX would have to change this. We'd have to do something like require an explicit "Submit" so that when only 3 characters are entered, we still know to go ahead and render the UI. Either that, or setup some kind of keydown timer so that if the user only enters 3 characters and nothing else after like a second or two, we know they meant HEX shorthand, so render based on that.
Suggestions and PRs are welcome for some kind of solution. I may play around with the timer solution if I have the time.
re: RGB/RGBa Input Color
Cool idea, but idk how we'd execute this. Open to suggestions on how we'd do this in the UI.
Allow for shorthand HEX (#f0f...) and RGB/RGBA for Input Color.
Original: arc90/sass-color-picker
The text was updated successfully, but these errors were encountered: