Updating the border color for radio button
This commit is contained in:
parent
a241265bab
commit
747f951b1b
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
import VDSColorTokens
|
import VDSColorTokens
|
||||||
|
import VDSFormControlsTokens
|
||||||
|
|
||||||
@objcMembers open class RadioButton: Control, MFButtonProtocol {
|
@objcMembers open class RadioButton: Control, MFButtonProtocol {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -25,7 +26,7 @@ import VDSColorTokens
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public var enabledColor: UIColor {
|
public var enabledColor: UIColor {
|
||||||
return radioModel?.inverted ?? false ? VDSColor.elementsPrimaryOndark : VDSColor.elementsPrimaryOnlight
|
return radioModel?.inverted ?? false ? VDSFormControlsColor.borderOndark : VDSFormControlsColor.borderOnlight
|
||||||
}
|
}
|
||||||
public var disabledColor: UIColor {
|
public var disabledColor: UIColor {
|
||||||
return radioModel?.inverted ?? false ? VDSColor.interactiveDisabledOndark : VDSColor.interactiveDisabledOnlight
|
return radioModel?.inverted ?? false ? VDSColor.interactiveDisabledOndark : VDSColor.interactiveDisabledOnlight
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user