Skip to content

Commit

Permalink
text field: focus border color takes precended before error state
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 16, 2022
1 parent 5a4c677 commit 60754cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public fun TextField(
) {
when (it) {
InputState.Normal -> Color.Transparent
InputState.Focused -> OrbitTheme.colors.interactive.main
InputState.NormalError, InputState.FocusedError -> OrbitTheme.colors.critical.main
InputState.Focused, InputState.FocusedError -> OrbitTheme.colors.interactive.main
InputState.NormalError -> OrbitTheme.colors.critical.main
}
}

Expand Down

0 comments on commit 60754cf

Please sign in to comment.