Skip to content

Commit

Permalink
Feedback changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Nov 25, 2024
1 parent b447807 commit 37cb235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 11 additions & 0 deletions packages/block-library/src/latest-comments/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Higher specificity - target list via wrapper.
.wp-block-latest-comments .wp-block-latest-comments {
// Remove left spacing. Higher specificity required to
// override default wp-block layout styles in the Post/Site editor.
padding-left: 0;
// These styles prevent duplicate borders in the Latest Comments block caused by
// server-side rendering injecting additional styles in the editor. They ensure
// consistent appearance in the editor while avoiding conflicts with frontend styles.
border: none;
border-radius: inherit;
}
10 changes: 0 additions & 10 deletions packages/block-library/src/latest-comments/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ ol.wp-block-latest-comments {
}
}

// Higher specificity - target list via wrapper.
.wp-block-latest-comments .wp-block-latest-comments {
// Remove left spacing. Higher specificity required to
// override default wp-block layout styles in the Post/Site editor.
padding-left: 0;
// The following styles are to prevent duplicate border for the latest comments.
border: none;
border-radius: inherit;
}

.wp-block-latest-comments__comment {
list-style: none;
margin-bottom: 1em;
Expand Down

0 comments on commit 37cb235

Please sign in to comment.