diff --git a/ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt b/ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt index a1b6b8956..cfabfa9fe 100644 --- a/ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt +++ b/ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt @@ -133,15 +133,6 @@ public fun TextField( InputState.NormalError, InputState.FocusedError -> OrbitTheme.colors.critical.main } } - val backgroundColor = transition.animateColor( - transitionSpec = { tween(durationMillis = AnimationDuration) }, - label = "backgroundColor" - ) { - when (it) { - InputState.Focused, InputState.FocusedError -> OrbitTheme.colors.surface.main - else -> OrbitTheme.colors.surface.subtle - } - } BasicTextField( value = textFieldValue, @@ -154,7 +145,7 @@ public fun TextField( modifier = Modifier .then(autoBringIntoViewFocusModifier) .border(1.dp, borderColor.value, OrbitTheme.shapes.normal) - .background(backgroundColor.value, OrbitTheme.shapes.normal), + .background(OrbitTheme.colors.surface.subtle, OrbitTheme.shapes.normal), enabled = enabled, readOnly = readOnly, textStyle = mergedTextStyle,