Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove spacing consistently across Post/Site, Widgets and Widgets Cus…
…tomizer editors
  • Loading branch information
getdave committed Jun 25, 2021
commit c171617d0756c1062a3681859e4b2eeb39968c0f
13 changes: 13 additions & 0 deletions packages/block-library/src/latest-comments/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@


// Lower specificity
.wp-block-latest-comments {
// Removes left spacing in Customizer Widgets screen.
// Due to low specificity this will be safely overriden
// by default wp-block layout styles in the Post/Site editor
margin-left: 0;
Copy link
Contributor

@jasmussen jasmussen Jun 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My biggest concern was this one, exactly because of the auto margins for centering. Thanks for adding the comment to explicitly address that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding the comment to explicitly address that.

Exactly this. I'm a big proponent of not adding random CSS rules without explaining why they are needed.

Why? Because otherwise things can get easily removed without folks understanding the consequences 😄

}

// Higher specificity
ol.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;
}

Expand Down