Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ $blocks-block__margin: 0.5em;
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;
height: 100%;
width: 100%;
align-content: center;

&.aligncenter {
Expand Down
5 changes: 5 additions & 0 deletions packages/block-library/src/buttons/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ $blocks-block__margin: 0.5em;
font-size: inherit;
}
}

// Needed to make the buttons stretch correctly in a vertical layout.
.wp-block-button__link {
width: 100%;
}
}

// Legacy buttons that did not come in a wrapping container.
Expand Down
5 changes: 0 additions & 5 deletions packages/block-library/src/post-comments-form/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,4 @@
margin-left: 0.5em;
}
}

// Override the 100% width derived from the Button block
input[type="submit"] {
width: auto;
}
}
Loading