Skip to content

Commit

Permalink
Post content: Add clearfix (#63690)
Browse files Browse the repository at this point in the history
Add a CSS clearfix to the post content block, to clear aligned (floated) blocks and prevent them from overflowing the content area.

Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org>
Co-authored-by: colorful-tones <colorful-tones@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
5 people authored Aug 1, 2024
1 parent 30c6dfb commit f6a9b02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/post-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
}
}
},
"style": "wp-block-post-content",
"editorStyle": "wp-block-post-content-editor"
}
5 changes: 5 additions & 0 deletions packages/block-library/src/post-content/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.wp-block-post-content::after {
content: "";
display: table;
clear: both;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@import "./paragraph/style.scss";
@import "./post-author/style.scss";
@import "./post-comments-form/style.scss";
@import "./post-content/style.scss";
@import "./post-date/style.scss";
@import "./post-excerpt/style.scss";
@import "./post-featured-image/style.scss";
Expand Down

0 comments on commit f6a9b02

Please sign in to comment.