Skip to content

Commit

Permalink
Fix: Fix textfield color
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingyuuu0108 committed Apr 1, 2024
1 parent 6e6f486 commit f11dc8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/DDS/Component/TextField/TextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public struct DodamTextField: View {
}

private var foregroundColor: AnyShapeStyle {
isFocused ? .init(.tint) : .init(Dodam.color(.tertiary))
isFocused
? .init(Dodam.color(.primary))
: .init(Dodam.color(.onSurfaceVariant))
}

public var body: some View {
Expand Down
1 change: 1 addition & 0 deletions Source/DDS/Foundation/Color/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public struct DodamColor: RawRepresentable {
}
}

public static let primary: Self = .init(hex: "#0083F0")
public static let primary: Self = .init(hex: "#0083F0")
public static let onPrimary: Self = .init(hex: "#FFFFFF")
public static let error: Self = .init(hex: "#EF2B2A")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "original"
"template-rendering-intent" : "template"
}
}

0 comments on commit f11dc8f

Please sign in to comment.