Skip to content

Commit 0d8345f

Browse files
committed
fix(button-toggle): allow toggle group elevation to be overwritten
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
1 parent 74fdedb commit 0d8345f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$background: map-get($theme, background);
99

1010
.mat-button-toggle-standalone, .mat-button-toggle-group {
11-
@include _mat-theme-elevation(2, $theme);
11+
@include _mat-theme-overridable-elevation(2, $theme);
1212
}
1313

1414
.mat-button-toggle {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ $mat-button-toggle-border-radius: 2px !default;
1111
position: relative;
1212
display: inline-flex;
1313
flex-direction: row;
14-
1514
border-radius: $mat-button-toggle-border-radius;
16-
1715
cursor: pointer;
1816
white-space: nowrap;
1917
overflow: hidden;

0 commit comments

Comments
 (0)