Skip to content

Commit

Permalink
Fix the button component styles when used with a dashicon (#29614)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Mar 10, 2021
1 parent e6b72e0 commit 732730f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
display: inline-block;
flex: 0 0 auto;
margin-left: 2px;
margin-right: 10px;
margin-right: 2px;
}

&.has-text {
Expand All @@ -309,6 +309,10 @@
&.has-text svg {
margin-right: 8px;
}

&.has-text .dashicon {
margin-right: 10px;
}
}

// Toggled style.
Expand Down

0 comments on commit 732730f

Please sign in to comment.