Skip to content

Commit

Permalink
fix(button): remove margin added by safari
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jan 24, 2020
1 parent 1532cf7 commit 9e90f22
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
}
}

// Safari only fix to remove added margins on buttons (see #5155)
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) {
.#{$prefix}--btn {
margin: 0;
}
}
}

// Reset intrisic padding in Firefox (see #731)
.#{$prefix}--btn::-moz-focus-inner {
padding: 0;
Expand Down

0 comments on commit 9e90f22

Please sign in to comment.