Skip to content

Commit

Permalink
Check if experiment enabled fr this time (#52315)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jul 7, 2023
1 parent 9dc955e commit 09a4abe
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 09a4abe

Please sign in to comment.