Skip to content

Commit

Permalink
Move duotone palette to the bottom of global styles gradients. (#37253)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias authored Dec 13, 2021
1 parent 23543d1 commit a5cfff5
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ export default function GradientPalettePanel( { name } ) {
className="edit-site-global-styles-gradient-palette-panel"
spacing={ 10 }
>
<div>
<Heading className="edit-site-global-styles-gradient-palette-panel__duotone-heading">
{ __( 'Duotone' ) }
</Heading>
<DuotonePicker
duotonePalette={ duotonePalette }
disableCustomDuotone={ true }
disableCustomColors={ true }
clearable={ false }
onChange={ noop }
/>
</div>
{ !! themeGradients && !! themeGradients.length && (
<PaletteEdit
canReset={ themeGradients !== baseThemeGradients }
Expand Down Expand Up @@ -94,6 +82,18 @@ export default function GradientPalettePanel( { name } ) {
) }
slugPrefix="custom-"
/>
<div>
<Heading className="edit-site-global-styles-gradient-palette-panel__duotone-heading">
{ __( 'Duotone' ) }
</Heading>
<DuotonePicker
duotonePalette={ duotonePalette }
disableCustomDuotone={ true }
disableCustomColors={ true }
clearable={ false }
onChange={ noop }
/>
</div>
</VStack>
);
}

0 comments on commit a5cfff5

Please sign in to comment.