Skip to content

Commit 63f22c3

Browse files
author
MPopov
committed
fix(button-group): margins in Safari
Closes #7858
1 parent f4beb51 commit 63f22c3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/button-group/_button-group-theme.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@
187187
box-shadow: --var($theme, 'shadow');
188188
transition: $transition;
189189
border-radius: --var($theme, 'border-radius');
190+
191+
button {
192+
// The margin here is required to fix a bug in Safari #7858
193+
margin-top: 0;
194+
margin-#{$right}: 0;
195+
margin-bottom: 0;
196+
}
190197
}
191198

192199
%igx-group-item {
@@ -204,10 +211,6 @@
204211
position: relative;
205212
z-index: 0;
206213
transition: $transition;
207-
// The margin here is required to fix a bug in Safari #7858
208-
margin-top: 0;
209-
margin-#{$right}: 0;
210-
margin-bottom: 0;
211214

212215
&%igx-button--flat {
213216
border-radius: 0;

0 commit comments

Comments
 (0)