feat: Adds thermal balance point, still need to implement economic balance point.
This commit is contained in:
@@ -110,17 +110,17 @@ public struct Toggle: HTML {
|
||||
switch isOn {
|
||||
case true:
|
||||
SecondaryButton(label: onLabel)
|
||||
.attributes(.class("rounded-s-lg"), .disabled)
|
||||
.attributes(.class("rounded-s-lg"), .disabled, .type(.button))
|
||||
|
||||
PrimaryButton(label: offLabel)
|
||||
.attributes(contentsOf: offAttributes + [.class("rounded-e-lg")])
|
||||
.attributes(contentsOf: offAttributes + [.class("rounded-e-lg"), .type(.button)])
|
||||
|
||||
case false:
|
||||
PrimaryButton(label: onLabel)
|
||||
.attributes(contentsOf: onAttributes + [.class("rounded-s-lg")])
|
||||
.attributes(contentsOf: onAttributes + [.class("rounded-s-lg"), .type(.button)])
|
||||
|
||||
SecondaryButton(label: offLabel)
|
||||
.attributes(.class("rounded-e-lg"), .disabled)
|
||||
.attributes(.class("rounded-e-lg"), .disabled, .type(.button))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user