Skip to content

Commit 283e507

Browse files
authored
Onboarding Copy Polish: Update design picker subtitle (#101806)
* update subtitle copy * update style variation copy * Add copy under premium styles header in color variations
1 parent dabd4b8 commit 283e507

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

client/landing/stepper/declarative-flow/internals/steps-repository/design-setup/unified-design-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ const UnifiedDesignPickerStep: StepType< {
926926
: translate( 'Pick a design' );
927927

928928
const subHeaderText = translate(
929-
'One of these homepage options could be great to start with. You can always change later.'
929+
'Choose a homepage design that works for you. You can always change it later.'
930930
);
931931

932932
// Use this to prioritize themes in certain categories.

packages/global-styles/src/components/color-palette-variations/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { PLAN_PERSONAL, PLAN_PREMIUM, getPlan } from '@automattic/calypso-products';
12
import { PremiumBadge } from '@automattic/components';
23
import {
34
__unstableComposite as Composite,
@@ -31,6 +32,7 @@ interface ColorPaletteVariationsProps {
3132
selectedColorPaletteVariation: GlobalStylesObject | null;
3233
onSelect: ( colorPaletteVariation: GlobalStylesObject | null ) => void;
3334
limitGlobalStyles?: boolean;
35+
isGlobalStylesOnPersonal?: boolean;
3436
}
3537

3638
const ColorPaletteVariation = ( {
@@ -87,11 +89,19 @@ const ColorPaletteVariations = ( {
8789
selectedColorPaletteVariation,
8890
onSelect,
8991
limitGlobalStyles,
92+
isGlobalStylesOnPersonal = window.isGlobalStylesOnPersonal ?? false,
9093
}: ColorPaletteVariationsProps ) => {
9194
const { base } = useContext( GlobalStylesContext );
9295
const colorPaletteVariations = useColorPaletteVariations( stylesheet ) ?? [];
9396
const composite = useCompositeState();
9497

98+
const upgradeToPlan = isGlobalStylesOnPersonal ? PLAN_PERSONAL : PLAN_PREMIUM;
99+
100+
const variationDescription = translate(
101+
'Preview our style variations for free or pick your own fonts and colors with the %(planName)s plan later on.',
102+
{ args: { planName: getPlan( upgradeToPlan )?.getTitle() ?? '' } }
103+
);
104+
95105
return (
96106
<Composite
97107
{ ...composite }
@@ -124,6 +134,7 @@ const ColorPaletteVariations = ( {
124134
}
125135
/>
126136
</h3>
137+
<p className="global-styles-variations__group-description">{ variationDescription }</p>
127138
<div className="color-palette-variations">
128139
{ colorPaletteVariations.map( ( colorPaletteVariation, index ) => (
129140
<ColorPaletteVariation

packages/global-styles/src/components/color-palette-variations/style.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@import "@automattic/typography/styles/variables";
2+
@import "@wordpress/base-styles/breakpoints";
3+
@import "@wordpress/base-styles/mixins";
24

35
.color-palette-variations {
46
display: grid;
@@ -70,3 +72,17 @@
7072
.global-styles-variations__group-title-actual {
7173
white-space: nowrap;
7274
}
75+
76+
.global-styles-variations__group-description {
77+
color: var(--color-neutral-60);
78+
font-size: 0.875rem;
79+
letter-spacing: -0.15px;
80+
padding: 6px 0 6px 0;
81+
line-height: 20px;
82+
margin: 0;
83+
84+
display: none;
85+
@include break-large {
86+
display: block;
87+
}
88+
}

packages/global-styles/src/components/global-styles-variations/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const GlobalStylesVariations = ( {
115115

116116
const variationDescription = needsUpgrade
117117
? translate(
118-
'Unlock style variations and tons of other features with the %(planName)s plan, or try them out now for free.',
118+
'Preview our style variations for free or pick your own fonts and colors with the %(planName)s plan later on.',
119119
{ args: { planName: getPlan( upgradeToPlan )?.getTitle() ?? '' } }
120120
)
121121
: translate( 'You can change your style at any time.' );

0 commit comments

Comments
 (0)