1+ @use ' @angular/cdk' ;
2+
13@use ' ../core/style/vendor-prefixes' ;
24@use ' ../core/style/layout-common' ;
3- @use ' ../../cdk/a11y' ;
45
56$standard-padding : 0 12px !default ;
67$standard-border-radius : 4px !default ;
@@ -22,7 +23,7 @@ $legacy-border-radius: 2px !default;
2223 // Fixes the ripples not being clipped to the border radius on Safari.
2324 transform : translateZ (0 );
2425
25- @include a11y .high-contrast (active , off) {
26+ @include cdk .high-contrast (active , off) {
2627 outline : solid 1px ;
2728 }
2829}
@@ -31,7 +32,7 @@ $legacy-border-radius: 2px !default;
3132.mat-button-toggle-group-appearance-standard {
3233 border-radius : $standard-border-radius ;
3334
34- @include a11y .high-contrast (active , off) {
35+ @include cdk .high-contrast (active , off) {
3536 outline : 0 ;
3637 }
3738}
@@ -60,7 +61,7 @@ $legacy-border-radius: 2px !default;
6061 opacity : 1 ;
6162
6263 // In high contrast mode `opacity: 1` will show the overlay as solid so we fall back 0.5.
63- @include a11y .high-contrast (active , off) {
64+ @include cdk .high-contrast (active , off) {
6465 opacity : 0.5 ;
6566 }
6667 }
@@ -80,7 +81,7 @@ $legacy-border-radius: 2px !default;
8081 & .cdk-keyboard-focused :not (.mat-button-toggle-disabled ) .mat-button-toggle-focus-overlay {
8182 opacity : 0.12 ;
8283
83- @include a11y .high-contrast (active , off) {
84+ @include cdk .high-contrast (active , off) {
8485 opacity : 0.5 ;
8586 }
8687 }
@@ -126,7 +127,7 @@ $legacy-border-radius: 2px !default;
126127 // Changing the background color for the selected item won't be visible in high contrast mode.
127128 // We fall back to using the overlay to draw a brighter, semi-transparent tint on top instead.
128129 // It uses a border, because the browser will render it using a brighter color.
129- @include a11y .high-contrast (active , off) {
130+ @include cdk .high-contrast (active , off) {
130131 .mat-button-toggle-checked & {
131132 border-bottom : solid $legacy-height ;
132133 opacity : 0.5 ;
@@ -135,7 +136,7 @@ $legacy-border-radius: 2px !default;
135136 }
136137}
137138
138- @include a11y .high-contrast (active , off) {
139+ @include cdk .high-contrast (active , off) {
139140 .mat-button-toggle-checked.mat-button-toggle-appearance-standard
140141 .mat-button-toggle-focus-overlay {
141142 // In high contrast mode, we use a border for the checked state because backgrounds
0 commit comments