Skip to content

Commit

Permalink
Tag Cloud: Prevent duplicate spacing in editor (#63832)
Browse files Browse the repository at this point in the history
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: akasunil <sunil25393@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>
  • Loading branch information
6 people authored Jul 26, 2024
1 parent cad81e4 commit d1a2f43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@import "./social-links/editor.scss";
@import "./spacer/editor.scss";
@import "./table/editor.scss";
@import "./tag-cloud/editor.scss";
@import "./template-part/editor.scss";
@import "./text-columns/editor.scss";
@import "./video/editor.scss";
Expand Down
9 changes: 9 additions & 0 deletions packages/block-library/src/tag-cloud/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// The following styles are to prevent duplicate spacing for the tag cloud
// block in the editor given it uses server side rendering. The specificity
// must be higher than `0-1-0` to override global styles. Targeting the
// inner use of the .wp-block-tag-cloud class should minimize impact on
// other 3rd party styles targeting the block.
.wp-block-tag-cloud .wp-block-tag-cloud {
margin: 0;
padding: 0;
}

0 comments on commit d1a2f43

Please sign in to comment.