[ColorPicker] Hex input field: 3 digits value is interpreted incorrectly #14969
Labels
Area-User Interface
things that regard UX for PowerToys
Issue-Bug
Something isn't working
Product-Color Picker
All things around the Color Picker utility
Resolution-Fix Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Projects
Microsoft PowerToys version
0.51.1
Running as admin
Area(s) with issue?
ColorPicker
Steps to reproduce
Open adjust color dialoge in CP Editor ux. Then type a 3 chars hex color value into text box.
✔️ Expected Behavior
The hex code is converted in background to 6 digits and will be represented correctly:
CF0
=>CCFF00
See this note on w3c.org: https://www.w3.org/TR/css-color-3/#rgb-color
❌ Actual Behavior
The three values are interpreted as the last three values of a six value hex code.
Other Software
No response
technical implementation
either not accepting 3 values input orconverting three values input to 6 values input: https://stackoverflow.com/questions/10230331/how-to-convert-3-digit-html-hex-colors-to-6-digit-flex-hex-colorsThe text was updated successfully, but these errors were encountered: