From 07e62169a57552d944e14290471ca551f37230a1 Mon Sep 17 00:00:00 2001 From: Gan Eng Chin Date: Fri, 12 Jan 2024 14:47:39 +0545 Subject: [PATCH] Remove unneeded `margin: 0` override. This is because margin from the Notice component has been removed in PR https://github.com/WordPress/gutenberg/pull/54800. --- packages/block-editor/src/components/block-list/content.scss | 5 +---- .../block-editor/src/components/contrast-checker/style.scss | 3 --- packages/block-library/src/page-list/editor.scss | 4 ---- packages/edit-widgets/src/components/notices/style.scss | 1 - packages/editor/src/components/editor-notices/style.scss | 1 - 5 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 packages/block-editor/src/components/contrast-checker/style.scss diff --git a/packages/block-editor/src/components/block-list/content.scss b/packages/block-editor/src/components/block-list/content.scss index d907ffd81d9dd0..aff842c608d4f2 100644 --- a/packages/block-editor/src/components/block-list/content.scss +++ b/packages/block-editor/src/components/block-list/content.scss @@ -26,7 +26,7 @@ /* stylelint-disable */ _::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection, _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-block-list__layout::selection { - background-color: transparent; + background-color: transparent; } /* stylelint-enable */ @@ -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; } diff --git a/packages/block-editor/src/components/contrast-checker/style.scss b/packages/block-editor/src/components/contrast-checker/style.scss deleted file mode 100644 index b3b08d6230d05d..00000000000000 --- a/packages/block-editor/src/components/contrast-checker/style.scss +++ /dev/null @@ -1,3 +0,0 @@ -.block-editor-contrast-checker > .components-notice { - margin: 0; -} diff --git a/packages/block-library/src/page-list/editor.scss b/packages/block-library/src/page-list/editor.scss index 18ecf904e3919a..b3f70746acd57f 100644 --- a/packages/block-library/src/page-list/editor.scss +++ b/packages/block-library/src/page-list/editor.scss @@ -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 { diff --git a/packages/edit-widgets/src/components/notices/style.scss b/packages/edit-widgets/src/components/notices/style.scss index c0b1f01836fd33..78aaecc883ba45 100644 --- a/packages/edit-widgets/src/components/notices/style.scss +++ b/packages/edit-widgets/src/components/notices/style.scss @@ -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; diff --git a/packages/editor/src/components/editor-notices/style.scss b/packages/editor/src/components/editor-notices/style.scss index f3b1f76285874f..85cd148bfea763 100644 --- a/packages/editor/src/components/editor-notices/style.scss +++ b/packages/editor/src/components/editor-notices/style.scss @@ -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;