) }
{ canChooseAColor && canChooseAGradient && (
-
- { ( tab ) => renderPanelType( tab.value ) }
-
+
+
+
+
+ { __( 'Solid' ) }
+
+
+ { __( 'Gradient' ) }
+
+
+
+ { tabPanels.color }
+
+
+ { tabPanels.gradient }
+
+
+
) }
- { ! canChooseAGradient &&
- renderPanelType( TAB_COLOR.value ) }
- { ! canChooseAColor &&
- renderPanelType( TAB_GRADIENT.value ) }
+
+ { ! canChooseAGradient && renderPanelType( TAB_IDS.color ) }
+ { ! canChooseAColor && renderPanelType( TAB_IDS.gradient ) }
diff --git a/packages/block-editor/src/components/colors-gradients/style.scss b/packages/block-editor/src/components/colors-gradients/style.scss
index 6cade124b7fe4..fcae4a99189ee 100644
--- a/packages/block-editor/src/components/colors-gradients/style.scss
+++ b/packages/block-editor/src/components/colors-gradients/style.scss
@@ -15,12 +15,6 @@ $swatch-gap: 12px;
min-width: 0;
}
-.block-editor-color-gradient-control__tabs {
- .block-editor-color-gradient-control__panel {
- padding: $grid-unit-20;
- }
-}
-
.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings {
&,
& > div:not(:first-of-type) {