feat(component): 액션 모달 강조색을 지원한다
This commit is contained in:
@@ -11,6 +11,7 @@ struct SodaV2ActionModal: View {
|
|||||||
let button1: SodaV2ActionModalButton?
|
let button1: SodaV2ActionModalButton?
|
||||||
let button2: SodaV2ActionModalButton?
|
let button2: SodaV2ActionModalButton?
|
||||||
let onDimmedTap: () -> Void
|
let onDimmedTap: () -> Void
|
||||||
|
var primaryTextColor: Color = .soda400
|
||||||
|
|
||||||
private var visibleButtons: [(label: String, action: () -> Void, isPrimary: Bool)] {
|
private var visibleButtons: [(label: String, action: () -> Void, isPrimary: Bool)] {
|
||||||
var buttons = [(label: String, action: () -> Void, isPrimary: Bool)]()
|
var buttons = [(label: String, action: () -> Void, isPrimary: Bool)]()
|
||||||
@@ -79,7 +80,7 @@ struct SodaV2ActionModal: View {
|
|||||||
Button(action: action) {
|
Button(action: action) {
|
||||||
Text(title)
|
Text(title)
|
||||||
.appFont(size: 18, weight: .medium)
|
.appFont(size: 18, weight: .medium)
|
||||||
.foregroundColor(isPrimary ? Color.soda400 : Color.white)
|
.foregroundColor(isPrimary ? primaryTextColor : Color.white)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.padding(14)
|
.padding(14)
|
||||||
.background(Color.clear)
|
.background(Color.clear)
|
||||||
|
|||||||
Reference in New Issue
Block a user