Skip to content

Commit

Permalink
Fix icon rebase regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen committed Feb 6, 2020
1 parent 57b26ef commit a5f29a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@
height: $icon-button-size;
align-items: center;
box-sizing: border-box;
padding: 8px;
padding: 6px; // Centers 24px icons.
overflow: hidden;
border-radius: 2px;
color: $black;

// Legacy 20px icons get 2px margin to have a 24px dimensions, making them centered.
> .dashicon,
> svg[width="20"] {
margin: 0 2px;
}

&:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover {
color: $theme-color;
}
Expand Down Expand Up @@ -220,12 +226,6 @@
&.has-text svg {
margin-right: 8px;
}

// Icon buttons without text should be squared.
&:not(.has-text) {
width: 36px;
justify-content: center;
}
}

svg {
Expand Down

0 comments on commit a5f29a6

Please sign in to comment.