minor fix on placeholder text color

This commit is contained in:
ryanzhao 2023-08-23 15:28:23 +10:00
parent e2856dfb97
commit a9dcfaa3b9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public struct SessionTextField: View {
if text.isEmpty {
Text(placeholder)
.font(.system(size: Values.smallFontSize))
.foregroundColor(themeColor: .textSecondary)
.foregroundColor(themeColor: (error?.isEmpty == false) ? .danger : .textSecondary)
}
SwiftUI.TextField(