Commit 7ccc392 1 parent 58faa94 commit 7ccc392 Copy full SHA for 7ccc392
File tree 1 file changed +20
-0
lines changed
src/material/button-toggle
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -309,3 +309,23 @@ $_standard-tokens: (
309
309
border : 0 ;
310
310
}
311
311
}
312
+
313
+ // Change the border-radius of the focus indicator to match the
314
+ // radius of the button-toggle-group or standalone button-toggle.
315
+ @include token-utils .use-tokens ($_standard-tokens ...) {
316
+ .mat-button-toggle-standalone.mat-button-toggle-appearance-standard {
317
+ @include token-utils .create-token-slot (--mat-focus-indicator-border-radius , shape);
318
+ }
319
+
320
+ .mat-button-toggle-group-appearance-standard .mat-button-toggle {
321
+ & :last-of-type .mat-button-toggle-button ::before {
322
+ @include token-utils .create-token-slot (border-top-right-radius , shape);
323
+ @include token-utils .create-token-slot (border-bottom-right-radius , shape);
324
+ }
325
+
326
+ & :first-of-type .mat-button-toggle-button ::before {
327
+ @include token-utils .create-token-slot (border-top-left-radius , shape);
328
+ @include token-utils .create-token-slot (border-bottom-left-radius , shape);
329
+ }
330
+ }
331
+ }
You can’t perform that action at this time.
0 commit comments