From 3ffbbcec2bb133a62c4ebec23e34f88cb381c376 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Mon, 29 Nov 2021 15:34:06 +1300 Subject: [PATCH 1/3] Move changes to the new palette edit component --- packages/components/src/palette-edit/index.js | 30 +++++++++---------- .../components/src/palette-edit/style.scss | 8 +++++ 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/packages/components/src/palette-edit/index.js b/packages/components/src/palette-edit/index.js index b4de9800c9ece..b5d5ab440d6ed 100644 --- a/packages/components/src/palette-edit/index.js +++ b/packages/components/src/palette-edit/index.js @@ -292,22 +292,8 @@ export default function PaletteEdit( { } } /> ) } - { ! isEditing && ( - { ! canOnlyChangeValues && ( @@ -328,7 +328,7 @@ export default function PaletteEdit( { onChange(); onClose(); } } - className="edit-palette-menu-button" + className="components-palette-edit__menu-button" > { isGradient ? __( diff --git a/packages/components/src/palette-edit/style.scss b/packages/components/src/palette-edit/style.scss index e78dfd30ebab4..ef78dd30fe925 100644 --- a/packages/components/src/palette-edit/style.scss +++ b/packages/components/src/palette-edit/style.scss @@ -18,7 +18,7 @@ } } .components-dropdown-menu__menu { - .components-button.edit-palette-menu-button { + .components-palette-edit__menu-button { width: 100%; } }