From b33e3942daaaaff335fabcb1177607140cc5c284 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 26 Oct 2021 14:48:34 -0400 Subject: [PATCH] Post Content: Fix float clearing on entry content (#35958) * Post Content: Fix float clearing on entry content. * Use overflow: auto instead of hidden. --- packages/block-library/src/post-content/style.scss | 4 ++++ packages/block-library/src/style.scss | 1 + 2 files changed, 5 insertions(+) create mode 100644 packages/block-library/src/post-content/style.scss diff --git a/packages/block-library/src/post-content/style.scss b/packages/block-library/src/post-content/style.scss new file mode 100644 index 0000000000000..82495159d01de --- /dev/null +++ b/packages/block-library/src/post-content/style.scss @@ -0,0 +1,4 @@ +// Required to ensure that subsequent blocks clear floats inside entry content. +.wp-block-post-content { + overflow: auto; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index 2f64d28818e5a..f24aff07f9fae 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -31,6 +31,7 @@ @import "./post-title/style.scss"; @import "./preformatted/style.scss"; @import "./pullquote/style.scss"; +@import "./post-content/style.scss"; @import "./post-template/style.scss"; @import "./query-pagination/style.scss"; @import "./quote/style.scss";