Digital ACT-191 ONEAPP-9311 story: update color configurations to stepper text for default and disabled states
This commit is contained in:
parent
6c26655cbb
commit
29d00ec352
@ -124,6 +124,12 @@ open class InputStepper: EntryFieldBase {
|
|||||||
$0.backgroundColor = .clear
|
$0.backgroundColor = .clear
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------
|
||||||
|
// MARK: - Configuration
|
||||||
|
//--------------------------------------------------
|
||||||
|
private var labelColorConfiguration = SurfaceColorConfiguration(VDSColor.elementsPrimaryOnlight , VDSColor.elementsPrimaryOndark)
|
||||||
|
private var labelDisabledColorConfiguration = SurfaceColorConfiguration(VDSColor.interactiveDisabledOnlight , VDSColor.interactiveDisabledOndark)
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Lifecycle
|
// MARK: - Lifecycle
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -195,6 +201,7 @@ open class InputStepper: EntryFieldBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal func updateButtonStates() {
|
internal func updateButtonStates() {
|
||||||
|
textLabel.textColorConfiguration = !isEnabled ? labelDisabledColorConfiguration.eraseToAnyColorable() : labelColorConfiguration.eraseToAnyColorable()
|
||||||
if isReadOnly || !isEnabled {
|
if isReadOnly || !isEnabled {
|
||||||
decrementButton.isEnabled = false
|
decrementButton.isEnabled = false
|
||||||
incrementButton.isEnabled = false
|
incrementButton.isEnabled = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user