Skip to content

Commit d4a8ea1

Browse files
committed
fixes value to hex, color inputs only language
1 parent d0f8d81 commit d4a8ea1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/features/color.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export function ColorPicker(pallete, selectorEngine) {
100100
const bg_icon = isMeaningfulBackground ? healthyContrastColor(BG) : ''
101101
const bo_icon = isMeaningfulBorder ? healthyContrastColor(BO) : ''
102102

103-
fgInput.attr('value', new_fg)
104-
bgInput.attr('value', new_bg)
105-
boInput.attr('value', new_bo)
103+
fgInput.attr('value', `#`+FG.toHex())
104+
bgInput.attr('value', `#`+BG.toHex())
105+
boInput.attr('value', `#`+BO.toHex())
106106

107107
foregroundPicker.attr('style', `
108108
--contextual_color: ${new_fg};

0 commit comments

Comments
 (0)