Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Styles: Try color and typography presets in Site View #59594

Merged
merged 8 commits into from
Mar 15, 2024
Prev Previous commit
Next Next commit
Remove the filters that might remove variations that are valid
  • Loading branch information
scruffian committed Mar 15, 2024
commit 6b066122ff06a7717caecd6bb09178b8fdb84a96
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,11 @@ function SidebarNavigationScreenGlobalStylesContent() {

const colorVariations = useCurrentMergeThemeStyleVariationsWithUserConfig( {
property: 'color',
filter: ( variation ) => !! variation?.settings?.color,
} );

const typographyVariations =
useCurrentMergeThemeStyleVariationsWithUserConfig( {
property: 'typography',
filter: ( variation ) =>
!! variation?.settings?.typography?.fontFamilies,
} );

// Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are
Expand Down
Loading