diff --git a/VDS/Components/Notification/Notification.swift b/VDS/Components/Notification/Notification.swift index 607bcc02..0e17f313 100644 --- a/VDS/Components/Notification/Notification.swift +++ b/VDS/Components/Notification/Notification.swift @@ -107,7 +107,7 @@ public class Notification: View { open var primaryButtonModel: ButtonModel? { didSet{didChange()}} open var primaryButton = Button().with { $0.size = .small - $0.use = .primary + $0.use = .secondary } open var secondaryButtonModel: ButtonModel? { didSet{didChange()}} @@ -229,6 +229,7 @@ public class Notification: View { var buttons: [Button] = [] if let primaryButtonModel { primaryButton.text = primaryButtonModel.text + primaryButton.surface = surface primaryButton.onClickSubscriber = primaryButton .publisher(for: .touchUpInside) .sink(receiveValue: { button in @@ -239,6 +240,7 @@ public class Notification: View { if let secondaryButtonModel { secondaryButton.text = secondaryButtonModel.text + secondaryButton.surface = surface secondaryButton.onClickSubscriber = secondaryButton .publisher(for: .touchUpInside) .sink(receiveValue: { button in