From a61420da2e10691c8af427725e1c01d82864b0e6 Mon Sep 17 00:00:00 2001 From: Dev Mehta Date: Thu, 23 Apr 2026 17:27:42 +0530 Subject: [PATCH] fix : add styling to avoid mismatch in list style in latest posts block and post content block --- packages/block-library/src/latest-posts/style.scss | 13 +++++++++++++ packages/block-library/src/post-content/style.scss | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/packages/block-library/src/latest-posts/style.scss b/packages/block-library/src/latest-posts/style.scss index c056a2cf8c64ba..c360a1bd578d2e 100644 --- a/packages/block-library/src/latest-posts/style.scss +++ b/packages/block-library/src/latest-posts/style.scss @@ -65,6 +65,19 @@ margin-bottom: 1em; } +.wp-block-latest-posts__post-full-content { + // Apply list styles only to unordered lists to prevent overriding ordered list styles. + ul > li { + list-style-type: disc; + > ul > li { + list-style-type: circle; + > ul > li { + list-style-type: square; + } + } + } +} + .wp-block-latest-posts__featured-image { a { display: inline-block; diff --git a/packages/block-library/src/post-content/style.scss b/packages/block-library/src/post-content/style.scss index 1d3e210e1210d7..435b4e11df661f 100644 --- a/packages/block-library/src/post-content/style.scss +++ b/packages/block-library/src/post-content/style.scss @@ -1,3 +1,14 @@ .wp-block-post-content { display: flow-root; + + // Apply list styles only to unordered lists to prevent overriding ordered list styles. + ul > li { + list-style-type: disc; + > ul > li { + list-style-type: circle; + > ul > li { + list-style-type: square; + } + } + } }