From 7308ec4c89957722b7f22ef5a686c83966faa5f8 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Wed, 23 Aug 2023 12:55:03 +0300 Subject: [PATCH 1/2] fix: color section dropdown alignment selector Before WP6.1, the Dropdown need an offset so it can be displayed correctly in Inspector. At the beggining, the selector was accounting only for 6.1 as exception. Now, the selector target any 5.X and 6.0. ^6.1 will not be affected. --- src/blocks/components/color-dropdown-control/editor.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/components/color-dropdown-control/editor.scss b/src/blocks/components/color-dropdown-control/editor.scss index 3ecb295e5..9edff1cbe 100644 --- a/src/blocks/components/color-dropdown-control/editor.scss +++ b/src/blocks/components/color-dropdown-control/editor.scss @@ -56,7 +56,7 @@ } } -body:not( .branch-6-1 ) { +body:is( [class*="branch-5-"], [class*="version-6-0"] ) { .o-color-dropdown-control-content { .components-popover__content { @media (min-width: 782px) { From 642b743f3f33ad61b6dfc191f8856fe2942e3144 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 24 Aug 2023 12:55:22 +0300 Subject: [PATCH 2/2] chore: alignment in Inspector for ButtonDropdownControl --- src/blocks/components/button-dropdown-control/editor.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/components/button-dropdown-control/editor.scss b/src/blocks/components/button-dropdown-control/editor.scss index 2eff2c8da..bc1cfcf0b 100644 --- a/src/blocks/components/button-dropdown-control/editor.scss +++ b/src/blocks/components/button-dropdown-control/editor.scss @@ -49,7 +49,7 @@ } } -body:not( .branch-6-1 ) { +body:is( [class*="branch-5-"], [class*="version-6-0"] ) { .o-button-dropdown-control-content { .components-popover__content { @media (min-width: 782px) {