Skip to content

Commit eaf5cdc

Browse files
committed
fix(switch): style component using sass themes
1 parent 4696094 commit eaf5cdc

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

projects/igniteui-angular/src/lib/core/styles/components/switch/_switch-theme.scss

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,12 @@
130130
%switch-composite--hover {
131131
border-color: var-get($theme, 'border-hover-color');
132132

133-
@if $variant != 'material' {
134-
%switch-thumb {
135-
background: var-get($theme, 'thumb-off-hover-color');
136-
}
133+
%switch-thumb {
134+
background: var-get($theme, 'thumb-off-hover-color');
135+
}
137136

138-
%switch-thumb--x {
139-
background: var-get($theme, 'thumb-on-color');
140-
}
137+
%switch-thumb--x {
138+
background: var-get($theme, 'thumb-on-color');
141139
}
142140
}
143141

@@ -153,10 +151,8 @@
153151
background: var-get($theme, 'track-on-hover-color');
154152
border-color: var-get($theme, 'border-on-hover-color');
155153

156-
@if $variant != 'material' {
157-
%switch-thumb {
158-
background: var-get($theme, 'thumb-on-color');
159-
}
154+
%switch-thumb {
155+
background: var-get($theme, 'thumb-on-color');
160156
}
161157
}
162158

0 commit comments

Comments
 (0)