Skip to content

Commit

Permalink
Try: Alternative button sizing fix. (#29208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Feb 22, 2021
1 parent 6fefebd commit 26560b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $blocks-block__margin: 0.5em;
cursor: pointer;
display: inline-block;
font-size: 1.125em;
padding: 0.667em 1.333em;
padding: calc(0.667em + 2px) calc(1.333em + 2px); // The extra 2px are added to size solids the same as the outline versions.
text-align: center;
text-decoration: none;
overflow-wrap: break-word;
Expand Down Expand Up @@ -76,6 +76,7 @@ $blocks-block__margin: 0.5em;
.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
border: 2px solid currentColor;
padding: 0.667em 1.333em;
}

.is-style-outline > .wp-block-button__link:not(.has-text-color),
Expand Down

0 comments on commit 26560b6

Please sign in to comment.