Skip to content

Commit

Permalink
Add comments on style and edit component changes in tag cloud block
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Aug 12, 2024
1 parent 1010d00 commit 6027353
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-library/src/tag-cloud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/tag-cloud/editor.scss
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6027353

Please sign in to comment.