We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0355821 commit 3de6eafCopy full SHA for 3de6eaf
1 file changed
src/components/TextField/outlined/logic.ts
@@ -59,8 +59,6 @@ export const getOutlinedTextFieldData = (
59
60
const { isRTL } = I18nManager;
61
62
- const hasActiveOutline = isFocused || hasError;
63
-
64
// =======================
65
// THEME TOKENS
66
@@ -93,8 +91,8 @@ export const getOutlinedTextFieldData = (
93
91
const $outlineStyles = [
94
92
$outlineStyle,
95
{
96
- borderWidth: hasActiveOutline ? 2 : 1,
97
- borderColor: hasActiveOutline ? activeOutlineColor : inactiveOutlineColor,
+ borderWidth: isFocused ? 2 : 1,
+ borderColor: hasError ? activeOutlineColor : inactiveOutlineColor,
98
},
99
$fieldStyleOverride,
100
];
0 commit comments