Skip to content

Commit 7ccc392

Browse files
committed
fix(material/button-toggle): standard button toggle strong focus bord… (#28790)
* fix(material/button-toggle): standard button toggle strong focus border-radius * fixup! fix(material/button-toggle): standard button toggle strong focus border-radius * fixup! fix(material/button-toggle): standard button toggle strong focus border-radius * fixup! fix(material/button-toggle): standard button toggle strong focus border-radius * fixup! fix(material/button-toggle): standard button toggle strong focus border-radius (cherry picked from commit 46db6a6)
1 parent 58faa94 commit 7ccc392

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/material/button-toggle/button-toggle.scss

+20
Original file line numberDiff line numberDiff line change
@@ -309,3 +309,23 @@ $_standard-tokens: (
309309
border: 0;
310310
}
311311
}
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+
}

0 commit comments

Comments
 (0)