Skip to content

Commit

Permalink
Post content: Add clearfix
Browse files Browse the repository at this point in the history
Add CSS to clear floated items inside the post content block.
  • Loading branch information
carolinan committed Jul 18, 2024
1 parent 88dffa0 commit c21dbf5
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 @@ -29,6 +29,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 c21dbf5

Please sign in to comment.