Skip to content

Commit

Permalink
Components: Icon Button: Indent text by SVG margin
Browse files Browse the repository at this point in the history
Avoids offset indent on wrapped text
  • Loading branch information
aduth committed Oct 19, 2018
1 parent 6ad1605 commit edf05c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/icon-button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
color: $dark-gray-500;
position: relative;
overflow: hidden;
text-indent: 4px;
border-radius: $radius-round-rectangle;

.dashicon {
Expand All @@ -20,6 +19,10 @@
svg {
fill: currentColor;
outline: none;

&:not:only-child {
margin-right: 4px;
}
}

&:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
Expand Down

0 comments on commit edf05c8

Please sign in to comment.