From 66a14b5715c3967b7dcd1491a289cbe8e3a4db71 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Thu, 7 Mar 2024 11:23:29 +0000 Subject: [PATCH] Global Styles: Remove preset headers (#59504) This should have been part of https://github.com/WordPress/gutenberg/pull/56622 --- .../components/global-styles/variations/variations-color.js | 3 --- .../global-styles/variations/variations-typography.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/variations/variations-color.js b/packages/edit-site/src/components/global-styles/variations/variations-color.js index 0fa51c5ef5057e..7d2c8d479e4900 100644 --- a/packages/edit-site/src/components/global-styles/variations/variations-color.js +++ b/packages/edit-site/src/components/global-styles/variations/variations-color.js @@ -5,12 +5,10 @@ import { __experimentalGrid as Grid, __experimentalVStack as VStack, } from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ -import Subtitle from '../subtitle'; import Variation from './variation'; import StylesPreviewColors from '../preview-colors'; import { useCurrentMergeThemeStyleVariationsWithUserConfig } from '../../../hooks/use-theme-style-variations/use-theme-style-variations-by-property'; @@ -29,7 +27,6 @@ export default function ColorVariations() { return ( - { __( 'Presets' ) } { colorVariations.map( ( variation, index ) => ( diff --git a/packages/edit-site/src/components/global-styles/variations/variations-typography.js b/packages/edit-site/src/components/global-styles/variations/variations-typography.js index 4f9894e6a1beaa..e933e91755f517 100644 --- a/packages/edit-site/src/components/global-styles/variations/variations-typography.js +++ b/packages/edit-site/src/components/global-styles/variations/variations-typography.js @@ -6,7 +6,6 @@ import { __experimentalGrid as Grid, __experimentalVStack as VStack, } from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor'; /** @@ -17,7 +16,6 @@ import { unlock } from '../../../lock-unlock'; import { useCurrentMergeThemeStyleVariationsWithUserConfig } from '../../../hooks/use-theme-style-variations/use-theme-style-variations-by-property'; import TypographyExample from '../typography-example'; import PreviewIframe from '../preview-iframe'; -import Subtitle from '../subtitle'; import { getFontFamilies } from '../utils'; import Variation from './variation'; @@ -68,7 +66,6 @@ export default function TypographyVariations() { return ( - { __( 'Presets' ) }