PillButton inverted-> surface

This commit is contained in:
Scott Pfeil 2023-09-15 12:13:02 -04:00
parent fe580d12e4
commit 917a0f8480
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
import UIKit
import VDSColorTokens
import VDS
import MVMCore
public typealias FacadeElements = (fill: UIColor?, text: UIColor?, border: UIColor?)

View File

@ -37,6 +37,7 @@ open class PillButton: VDS.Button, MVMCoreUIViewConstrainingProtocol, MFButtonPr
isEnabled = viewModel.enabled
size = viewModel.size
use = viewModel.style ?? .primary
surface = viewModel.inverted ? .dark : .light
if let accessibilityText = viewModel.accessibilityText {
accessibilityLabel = accessibilityText
}