Skip to content

Commit 2ce57b3

Browse files
authored
fix(button): remove margin added by safari (#5169)
* fix(button): remove margin added by safari * fix(button): add button fix to reset file as well * fix(button): make margin reset less browser specific
1 parent 104eddb commit 2ce57b3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/components/src/components/button/_mixins.scss

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
outline: none;
3030
position: relative;
3131
max-width: rem(320px);
32+
// Fix to remove added margins on buttons in safari (see #5155)
33+
margin: 0;
3234

3335
&:disabled,
3436
&.#{$prefix}--btn--disabled {

packages/components/src/globals/scss/_css--reset.scss

+5
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@
190190
box-sizing: border-box;
191191
}
192192

193+
// Fix to remove added margins on buttons in safari (see #5155)
194+
button {
195+
margin: 0;
196+
}
197+
193198
@include carbon--type-reset;
194199
@include carbon--icons;
195200
}

0 commit comments

Comments
 (0)