Skip to content

Commit be17eb3

Browse files
authored
fix(switch): style component using sass themes (#16490)
* fix(switch): style component using sass themes * fix(switch): indigo border-radius
1 parent e47814e commit be17eb3

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

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

Lines changed: 7 additions & 12 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

@@ -259,7 +255,6 @@
259255

260256
@if $variant == 'indigo' {
261257
%switch-composite {
262-
border-radius: var-get($theme, 'border-radius-thumb');
263258
box-shadow: 0 0 0 rem(3px) var-get($theme, 'focus-outline-color');
264259
}
265260
}

0 commit comments

Comments
 (0)