Skip to content

Commit 82e14f8

Browse files
devversionjelbourn
authored andcommitted
fix(button-toggle): border radius ignored if option is selected (#6699)
As per Material Design specifications, the button-toggle group should always have a border radius. This behavior has been implemented in the `md-button-toggle-group` component, but does not work properly if an option is selected or disabled. This happens because selected and disabled button-toggles receives a background color, which overflows the clipped button-toggle-group. Fixes #6689
1 parent 8c49422 commit 82e14f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/button-toggle/button-toggle.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $mat-button-toggle-border-radius: 2px !default;
1818

1919
cursor: pointer;
2020
white-space: nowrap;
21+
overflow: hidden;
2122
}
2223

2324
.mat-button-toggle-vertical {

0 commit comments

Comments
 (0)