Skip to content

Commit 3de6eaf

Browse files
committed
fix: outline error styles
1 parent 0355821 commit 3de6eaf

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • src/components/TextField/outlined

src/components/TextField/outlined/logic.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ export const getOutlinedTextFieldData = (
5959

6060
const { isRTL } = I18nManager;
6161

62-
const hasActiveOutline = isFocused || hasError;
63-
6462
// =======================
6563
// THEME TOKENS
6664
// =======================
@@ -93,8 +91,8 @@ export const getOutlinedTextFieldData = (
9391
const $outlineStyles = [
9492
$outlineStyle,
9593
{
96-
borderWidth: hasActiveOutline ? 2 : 1,
97-
borderColor: hasActiveOutline ? activeOutlineColor : inactiveOutlineColor,
94+
borderWidth: isFocused ? 2 : 1,
95+
borderColor: hasError ? activeOutlineColor : inactiveOutlineColor,
9896
},
9997
$fieldStyleOverride,
10098
];

0 commit comments

Comments
 (0)