Skip to content

Commit 698a60c

Browse files
authored
Use TinyColor string methods for colors (#8399)
* Use TinyColor string methods for colors Replace toHex8() and toHex() with toHex8String() and toHexString() to ensure color formatting returns proper string values. A debugger statement was also added for troubleshooting the color formatting logic. * Remove stray debugger from ColorInput.vue
1 parent 2a16b3c commit 698a60c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/formkit/inputs/color/ColorInput.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function formatColorByUnpredictableValue(value: string) {
4040
case "rgb":
4141
return color.toRgbString();
4242
case "hex8":
43-
return color.toHex8();
43+
return color.toHex8String();
4444
case "hsl":
4545
return color.toHslString();
4646
default:
47-
return color.toHex();
47+
return color.toHexString();
4848
}
4949
}
5050

0 commit comments

Comments
 (0)