Skip to content

Commit

Permalink
Check directly if experiment is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jul 5, 2023
1 parent 4d69e75 commit 851ed88
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/edit-site/src/components/global-styles/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ function Palette( { name } ) {
</HStack>
</NavigationButtonAsItem>
</ItemGroup>
{ randomizeThemeColors && themeColors?.length > 0 && (
<Button
variant="secondary"
icon={ shuffle }
onClick={ randomizeThemeColors }
>
{ __( 'Randomize colors' ) }
</Button>
) }
{ window.__experimentalEnableColorRandomizer &&
themeColors?.length > 0 && (
<Button
variant="secondary"
icon={ shuffle }
onClick={ randomizeThemeColors }
>
{ __( 'Randomize colors' ) }
</Button>
) }
</VStack>
);
}
Expand Down

0 comments on commit 851ed88

Please sign in to comment.