Skip to content

Commit 26ee7da

Browse files
committed
fix(button-toggle): parent margin and padding being propagated to underlying button
Fixes the button inside a button toggle inheriting the margin and padding from its parent. Fixes #11976.
1 parent 444fb38 commit 26ee7da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ $mat-button-toggle-border-radius: 2px !default;
105105
border: 0;
106106
background: none;
107107
color: inherit;
108-
padding: inherit;
109-
margin: inherit;
108+
padding: 0;
109+
margin: 0;
110110
font: inherit;
111111
outline: none;
112112
}

0 commit comments

Comments
 (0)