Skip to content

Commit

Permalink
fix(button-toggle): border radius ignored if option is selected (#6699)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
devversion authored and jelbourn committed Sep 1, 2017
1 parent 8c49422 commit 82e14f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/button-toggle/button-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $mat-button-toggle-border-radius: 2px !default;

cursor: pointer;
white-space: nowrap;
overflow: hidden;
}

.mat-button-toggle-vertical {
Expand Down

0 comments on commit 82e14f8

Please sign in to comment.