Updating the border color for radio button

This commit is contained in:
Sumanth Nadigadda 2022-08-03 23:11:45 +05:30
parent a241265bab
commit 747f951b1b

View File

@ -8,6 +8,7 @@
import UIKit
import VDSColorTokens
import VDSFormControlsTokens
@objcMembers open class RadioButton: Control, MFButtonProtocol {
//--------------------------------------------------
@ -25,7 +26,7 @@ import VDSColorTokens
}
}
public var enabledColor: UIColor {
return radioModel?.inverted ?? false ? VDSColor.elementsPrimaryOndark : VDSColor.elementsPrimaryOnlight
return radioModel?.inverted ?? false ? VDSFormControlsColor.borderOndark : VDSFormControlsColor.borderOnlight
}
public var disabledColor: UIColor {
return radioModel?.inverted ?? false ? VDSColor.interactiveDisabledOndark : VDSColor.interactiveDisabledOnlight