updated disabled values
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
9093131f1d
commit
38b757c20a
@ -104,7 +104,7 @@ open class InputField: EntryField, UITextFieldDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var textFieldTextColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
public var textFieldTextColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
||||||
$0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.elementsSecondaryOndark, forDisabled: true)
|
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
|
||||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
||||||
}.eraseToAnyColorable()
|
}.eraseToAnyColorable()
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ open class InputField: EntryField, UITextFieldDelegate {
|
|||||||
open override func updateView() {
|
open override func updateView() {
|
||||||
super.updateView()
|
super.updateView()
|
||||||
|
|
||||||
textField.isEnabled = isEnabled
|
textField.isEnabled = !disabled
|
||||||
textField.textColor = textFieldTextColorConfiguration.getColor(self)
|
textField.textColor = textFieldTextColorConfiguration.getColor(self)
|
||||||
|
|
||||||
//show error or success
|
//show error or success
|
||||||
|
|||||||
@ -54,7 +54,7 @@ open class TextArea: EntryField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var textViewTextColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
public var textViewTextColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
||||||
$0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.elementsSecondaryOndark, forDisabled: true)
|
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
|
||||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
||||||
}.eraseToAnyColorable()
|
}.eraseToAnyColorable()
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ open class TextArea: EntryField {
|
|||||||
open override func updateView() {
|
open override func updateView() {
|
||||||
super.updateView()
|
super.updateView()
|
||||||
|
|
||||||
textView.isEditable = isEnabled
|
textView.isEditable = !disabled
|
||||||
textView.textColor = textViewTextColorConfiguration.getColor(self)
|
textView.textColor = textViewTextColorConfiguration.getColor(self)
|
||||||
|
|
||||||
//set the width constraints
|
//set the width constraints
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user