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 authored Jul 5, 2023
1 parent 58ba018 commit 48473a7
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 48473a7

Please sign in to comment.