CXTDT-426628 - Toggle - Incorrect disabled text color

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-07-06 12:33:56 -05:00
parent f517a6fd28
commit 418dcf40c2
2 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,10 @@ open class Toggle: Control, Changeable {
open var label = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textColorConfiguration = ViewColorConfiguration().with {
$0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.elementsSecondaryOndark, forDisabled: true)
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
}.eraseToAnyColorable()
}
open var isOn: Bool {

View File

@ -1,6 +1,7 @@
1.0.27
=======
- Added Loader View
- CXTDT-426628 - Toggle - Incorrect disabled text color
1.0.26
=======