Skip to content

Commit c3571bc

Browse files
camwiegertbrandyscarney
authored andcommitted
chore(toggle): don't overwrite ion-color properties
1 parent bb20f39 commit c3571bc

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

core/src/components/toggle/toggle.ios.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
// -----------------------------------------
66

77
:host {
8-
--background: #{$toggle-ios-background-color-off};
9-
--background-checked: #{ion-color(primary, base)};
10-
--handle-background: #{$toggle-ios-handle-background-color};
11-
--handle-background-checked: #{$toggle-ios-handle-background-color};
8+
--checked-background: #{ion-color(primary, base)};
9+
--checked-knob: #{ion-color(primary, base)};
1210

1311
box-sizing: content-box;
1412

core/src/components/toggle/toggle.md.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
// -----------------------------------------
66

77
:host {
8-
--background: #{$toggle-md-track-background-color-off};
9-
--background-checked: #{ion-color(primary, base, $toggle-md-track-background-color-alpha-on)};
10-
--handle-background: #{$toggle-md-handle-background-color-off};
11-
--handle-background-checked: #{ion-color(primary, base)};
8+
--checked-background: #{ion-color(primary, base, $toggle-md-track-background-color-alpha-on)};
9+
--checked-knob: #{ion-color(primary, base)};
1210

1311
@include padding($toggle-md-padding-top, $toggle-md-padding-end, $toggle-md-padding-bottom, $toggle-md-padding-start);
1412

core/src/components/toggle/toggle.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
// --------------------------------------------------
55

66
:host {
7-
/**
8-
* @prop --background: Background of the toggle
9-
* @prop --background-checked: Background of the toggle when checked
10-
* @prop --handle-background: Background of the toggle handle
11-
* @prop --handle-background-checked: Background of the toggle handle when checked
12-
*/
13-
147
// TODO can we remove important here
158
/* stylelint-disable-next-line declaration-no-important */
169
box-sizing: content-box !important;

0 commit comments

Comments
 (0)