PillButton inverted-> surface
This commit is contained in:
parent
fe580d12e4
commit
917a0f8480
@ -9,6 +9,7 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import VDSColorTokens
|
import VDSColorTokens
|
||||||
import VDS
|
import VDS
|
||||||
|
import MVMCore
|
||||||
|
|
||||||
public typealias FacadeElements = (fill: UIColor?, text: UIColor?, border: UIColor?)
|
public typealias FacadeElements = (fill: UIColor?, text: UIColor?, border: UIColor?)
|
||||||
|
|
||||||
|
|||||||
@ -37,6 +37,7 @@ open class PillButton: VDS.Button, MVMCoreUIViewConstrainingProtocol, MFButtonPr
|
|||||||
isEnabled = viewModel.enabled
|
isEnabled = viewModel.enabled
|
||||||
size = viewModel.size
|
size = viewModel.size
|
||||||
use = viewModel.style ?? .primary
|
use = viewModel.style ?? .primary
|
||||||
|
surface = viewModel.inverted ? .dark : .light
|
||||||
if let accessibilityText = viewModel.accessibilityText {
|
if let accessibilityText = viewModel.accessibilityText {
|
||||||
accessibilityLabel = accessibilityText
|
accessibilityLabel = accessibilityText
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user