fix(input): error & warning border color in dark theme

This commit is contained in:
07akioni 2020-11-15 23:41:43 +08:00
parent e191950006
commit 5f2903f18b

View File

@ -48,14 +48,14 @@ export default create({
boxShadowFocus: `0 0 8px 0 ${changeColor(primaryColor, { alpha: 0.3 })}`, boxShadowFocus: `0 0 8px 0 ${changeColor(primaryColor, { alpha: 0.3 })}`,
boxShadowDisabled: 'inset 0 0 0 1px transparent', boxShadowDisabled: 'inset 0 0 0 1px transparent',
// warning // warning
borderColorWarning: 'transparent', borderColorWarning: warningColor,
borderColorHoverWarning: warningColorHover, borderColorHoverWarning: warningColorHover,
colorFocusWarning: changeColor(warningColor, { alpha: 0.1 }), colorFocusWarning: changeColor(warningColor, { alpha: 0.1 }),
borderColorFocusWarning: warningColorHover, borderColorFocusWarning: warningColorHover,
boxShadowFocusWarning: `0 0 8px 0 ${changeColor(warningColor, { alpha: 0.3 })}`, boxShadowFocusWarning: `0 0 8px 0 ${changeColor(warningColor, { alpha: 0.3 })}`,
caretColorWarning: warningColor, caretColorWarning: warningColor,
// error // error
borderColorError: 'transparent', borderColorError: errorColor,
borderColorHoverError: errorColorHover, borderColorHoverError: errorColorHover,
colorFocusError: changeColor(errorColor, { alpha: 0.1 }), colorFocusError: changeColor(errorColor, { alpha: 0.1 }),
borderColorFocusError: errorColorHover, borderColorFocusError: errorColorHover,