@@ -457,15 +457,15 @@ $_fallback-size: 40px;
457
457
// MDC expects `.mdc-checkbox__ripple::before` to be the state layer, but we use
458
458
// `.mdc-checkbox__ripple` instead, so we emit the state layer slots ourselves.
459
459
& :hover {
460
- .mdc-checkbox__ripple {
460
+ > .mdc-checkbox__ripple {
461
461
@include token-utils .create-token-slot (opacity , unselected- hover- state- layer- opacity);
462
462
@include token-utils .create-token-slot (
463
463
background-color ,
464
464
unselected- hover- state- layer- color
465
465
);
466
466
}
467
467
468
- .mat-mdc-checkbox-ripple .mat-ripple-element {
468
+ > .mat-mdc-checkbox-ripple .mat-ripple-element {
469
469
@include token-utils .create-token-slot (
470
470
background-color ,
471
471
unselected- hover- state- layer- color
@@ -474,7 +474,7 @@ $_fallback-size: 40px;
474
474
}
475
475
476
476
.mdc-checkbox__native-control :focus {
477
- & ~ .mdc-checkbox__ripple {
477
+ & + .mdc-checkbox__ripple {
478
478
@include token-utils .create-token-slot (opacity , unselected- focus- state- layer- opacity);
479
479
@include token-utils .create-token-slot (
480
480
background-color ,
@@ -490,8 +490,8 @@ $_fallback-size: 40px;
490
490
}
491
491
}
492
492
493
- & :active .mdc-checkbox__native-control {
494
- & ~ .mdc-checkbox__ripple {
493
+ & :active > .mdc-checkbox__native-control {
494
+ & + .mdc-checkbox__ripple {
495
495
@include token-utils .create-token-slot (opacity , unselected- pressed- state- layer- opacity);
496
496
@include token-utils .create-token-slot (
497
497
background-color ,
@@ -508,7 +508,7 @@ $_fallback-size: 40px;
508
508
}
509
509
510
510
& :hover .mdc-checkbox__native-control :checked {
511
- & ~ .mdc-checkbox__ripple {
511
+ & + .mdc-checkbox__ripple {
512
512
@include token-utils .create-token-slot (opacity , selected- hover- state- layer- opacity);
513
513
@include token-utils .create-token-slot (
514
514
background-color ,
@@ -525,7 +525,7 @@ $_fallback-size: 40px;
525
525
}
526
526
527
527
.mdc-checkbox__native-control :focus:checked {
528
- & ~ .mdc-checkbox__ripple {
528
+ & + .mdc-checkbox__ripple {
529
529
@include token-utils .create-token-slot (opacity , selected- focus- state- layer- opacity);
530
530
@include token-utils .create-token-slot (
531
531
background-color ,
@@ -541,8 +541,8 @@ $_fallback-size: 40px;
541
541
}
542
542
}
543
543
544
- & :active .mdc-checkbox__native-control :checked {
545
- & ~ .mdc-checkbox__ripple {
544
+ & :active > .mdc-checkbox__native-control :checked {
545
+ & + .mdc-checkbox__ripple {
546
546
@include token-utils .create-token-slot (opacity , selected- pressed- state- layer- opacity);
547
547
@include token-utils .create-token-slot (
548
548
background-color ,
@@ -561,7 +561,7 @@ $_fallback-size: 40px;
561
561
// Needs extra specificity to override the focus, hover, active states.
562
562
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive & {
563
563
.mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element ,
564
- .mdc-checkbox__native-control ~ .mdc-checkbox__ripple {
564
+ .mdc-checkbox__native-control + .mdc-checkbox__ripple {
565
565
@include token-utils .create-token-slot (
566
566
background-color ,
567
567
unselected- hover- state- layer- color
0 commit comments