Skip to content

Commit e91d509

Browse files
authored
fix(material/button-toggle): incorrect shape of focus indicator in vertical group (#30376)
Fixes that the first/last buttons in a vertical button group had the wrong shape. Fixes #30368.
1 parent b7c377b commit e91d509

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

+13-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ $_standard-tokens: (
386386
@include token-utils.create-token-slot(--mat-focus-indicator-border-radius, shape);
387387
}
388388

389-
.mat-button-toggle-group-appearance-standard .mat-button-toggle {
389+
.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle {
390390
&:last-of-type .mat-button-toggle-button::before {
391391
@include token-utils.create-token-slot(border-top-right-radius, shape);
392392
@include token-utils.create-token-slot(border-bottom-right-radius, shape);
@@ -397,4 +397,16 @@ $_standard-tokens: (
397397
@include token-utils.create-token-slot(border-bottom-left-radius, shape);
398398
}
399399
}
400+
401+
.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle {
402+
&:last-of-type .mat-button-toggle-button::before {
403+
@include token-utils.create-token-slot(border-bottom-right-radius, shape);
404+
@include token-utils.create-token-slot(border-bottom-left-radius, shape);
405+
}
406+
407+
&:first-of-type .mat-button-toggle-button::before {
408+
@include token-utils.create-token-slot(border-top-right-radius, shape);
409+
@include token-utils.create-token-slot(border-top-left-radius, shape);
410+
}
411+
}
400412
}

0 commit comments

Comments
 (0)