Skip to content

Commit

Permalink
Remove unneeded margin: 0 override for Notice component consumer (#…
Browse files Browse the repository at this point in the history
…57794)

* Remove unneeded `margin: 0` override.

This is because margin from the Notice component has been removed in PR #54800.

* Remove import of deleted stylesheet.
  • Loading branch information
ecgan authored Jan 23, 2024
1 parent 22276a2 commit 773d03b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions packages/block-editor/src/components/block-list/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
width: 100%;

.components-notice {
margin-left: 0;
margin-right: 0;

.components-notice__content {
font-size: $default-font-size;
}
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/block-editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
@import "./components/block-variation-transforms/style.scss";
@import "./components/border-radius-control/style.scss";
@import "./components/colors-gradients/style.scss";
@import "./components/contrast-checker/style.scss";
@import "./components/date-format-picker/style.scss";
@import "./components/duotone-control/style.scss";
@import "./components/font-appearance-control/style.scss";
Expand Down
4 changes: 0 additions & 4 deletions packages/block-library/src/page-list/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@
}
}

.wp-block-page-list .components-notice {
margin-left: 0;
}

// Space spinner to give it breathing
// room when block is selected and has focus outline.
.wp-block-page-list__loading-indicator-container {
Expand Down
1 change: 0 additions & 1 deletion packages/edit-widgets/src/components/notices/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
.edit-widgets-notices__pinned {
.components-notice {
box-sizing: border-box;
margin: 0;
border-bottom: $border-width solid rgba(0, 0, 0, 0.2);
padding: 0 $grid-unit-15;

Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/components/editor-notices/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

.components-notice {
box-sizing: border-box;
margin: 0;
border-bottom: $border-width solid rgba(0, 0, 0, 0.2);
padding: 0 $grid-unit-15;

Expand Down

0 comments on commit 773d03b

Please sign in to comment.