Skip to content

Commit 13b229a

Browse files
committed
fix(checkbox): fix checkbox theme to use properties properly
1 parent 4505581 commit 13b229a

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/checkbox/_checkbox-component.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
@include e(composite-mark) {
111111
@extend %cbx-composite-mark--invalid--fluent !optional;
112112
}
113+
114+
@include e(label) {
115+
@extend %cbx-label--invalid !optional;
116+
}
113117
}
114118

115119
&:active {
@@ -181,6 +185,12 @@
181185
@include e(ripple) {
182186
@extend %cbx-ripple--focused-invalid !optional;
183187
}
188+
189+
&:hover {
190+
@include e(ripple) {
191+
@extend %cbx-ripple--hover-invalid !optional;
192+
}
193+
}
184194
}
185195

186196
@include mx(indigo, focused, invalid) {
@@ -322,6 +332,21 @@
322332
@extend %cbx-ripple--focused !optional;
323333
@extend %cbx-ripple--focused-checked !optional;
324334
}
335+
336+
&:hover {
337+
@include e(ripple) {
338+
@extend %cbx-ripple--focused !optional;
339+
@extend %cbx-ripple--focused--hover-checked !optional;
340+
}
341+
}
342+
}
343+
344+
@include mx(focused, invalid, checked) {
345+
&:hover {
346+
@include e(ripple) {
347+
@extend %cbx-ripple--hover-invalid !optional;
348+
}
349+
}
325350
}
326351

327352
@include mx(focused, indeterminate) {

projects/igniteui-angular/src/lib/core/styles/components/checkbox/_checkbox-theme.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@
291291
z-index: 1;
292292
}
293293
}
294+
295+
&:hover {
296+
%cbx-composite {
297+
&::before {
298+
background: var-get($theme, 'fill-color-hover');
299+
}
300+
}
301+
}
294302
}
295303

296304
%igx-checkbox--disabled-indeterminate-fluent {
@@ -458,11 +466,11 @@
458466
}
459467

460468
%cbx-ripple--hover-checked {
461-
background: var-get($theme, 'fill-color');
469+
background: var-get($theme, 'fill-color-hover');
462470
}
463471

464472
%cbx-ripple--hover-invalid {
465-
background: var-get($theme, 'error-color');
473+
background: var-get($theme, 'error-color-hover');
466474
}
467475

468476
%igx-checkbox--focused-indigo {
@@ -544,6 +552,10 @@
544552
background: var-get($theme, 'fill-color');
545553
}
546554

555+
%cbx-ripple--focused--hover-checked {
556+
background: var-get($theme, 'fill-color-hover');
557+
}
558+
547559
%cbx-ripple--focused-invalid {
548560
background: var-get($theme, 'error-color');
549561
}

0 commit comments

Comments
 (0)