Skip to content

Commit

Permalink
Revert button
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jan 30, 2023
1 parent 941616b commit bd9b95f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ $blocks-block__margin: 0.5em;
text-align: center;
word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here.
box-sizing: border-box;
// Stretch to button width if it is set.
width: 100%;

&.aligncenter {
text-align: center;
Expand Down Expand Up @@ -44,6 +42,9 @@ $blocks-block__margin: 0.5em;
.wp-block-buttons > .wp-block-button {
&.has-custom-width {
max-width: none;
.wp-block-button__link {
width: 100%;
}
}

&.has-custom-font-size {
Expand Down

0 comments on commit bd9b95f

Please sign in to comment.