mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Show a resting-state border on raised text fields
This commit is contained in:
@@ -138,7 +138,7 @@ public struct CompoundTextFieldStyle: @MainActor TextFieldStyle {
|
|||||||
|
|
||||||
/// The width of the text field's border.
|
/// The width of the text field's border.
|
||||||
private var borderWidth: CGFloat {
|
private var borderWidth: CGFloat {
|
||||||
isFocused || isError ? 1.0 : 0
|
isFocused || isError || kind.isRaised ? 1.0 : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
private var accentColor: Color {
|
private var accentColor: Color {
|
||||||
|
|||||||
Reference in New Issue
Block a user