From 6027353ecc1ec3b37594897d7f3f3c87e81cd46f Mon Sep 17 00:00:00 2001 From: akasunil Date: Mon, 12 Aug 2024 15:12:27 +0530 Subject: [PATCH] Add comments on style and edit component changes in tag cloud block --- packages/block-library/src/tag-cloud/edit.js | 1 + packages/block-library/src/tag-cloud/editor.scss | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/tag-cloud/edit.js b/packages/block-library/src/tag-cloud/edit.js index 7a7e6059ab74d..8ced99271e480 100644 --- a/packages/block-library/src/tag-cloud/edit.js +++ b/packages/block-library/src/tag-cloud/edit.js @@ -107,6 +107,7 @@ function TagCloudEdit( { attributes, setAttributes } ) { setAttributes( updateObj ); }; + // Remove border styles from the server-side attributes to prevent duplicate border. const serverSideAttributes = { ...attributes, style: { diff --git a/packages/block-library/src/tag-cloud/editor.scss b/packages/block-library/src/tag-cloud/editor.scss index 01934ce97331c..d00a450174f2f 100644 --- a/packages/block-library/src/tag-cloud/editor.scss +++ b/packages/block-library/src/tag-cloud/editor.scss @@ -1,4 +1,4 @@ -// The following styles are to prevent duplicate spacing for the tag cloud +// The following styles are to prevent duplicate spacing and border 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