From 43e189fc8b2e56a29d29e0cd4c5a9cfcef7828ca Mon Sep 17 00:00:00 2001 From: Michael Cain Date: Mon, 29 Apr 2019 16:54:45 -0400 Subject: [PATCH] Use `preventWidows` on mockup title and tagline. --- client/signup/site-mockup/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/signup/site-mockup/index.jsx b/client/signup/site-mockup/index.jsx index ee68d916724864..17bc053610d1ed 100644 --- a/client/signup/site-mockup/index.jsx +++ b/client/signup/site-mockup/index.jsx @@ -24,6 +24,7 @@ import { getSiteStyleOptions, getThemeCssUri } from 'lib/signup/site-styles'; import { recordTracksEvent } from 'state/analytics/actions'; import { getLocaleSlug, getLanguage } from 'lib/i18n-utils'; import { getSiteTitle } from 'state/signup/steps/site-title/selectors'; +import { preventWidows } from 'lib/formatting'; /** * Style dependencies @@ -120,8 +121,8 @@ class SiteMockups extends Component { fontUrl, cssUrl: getThemeCssUri( themeSlug, isRtl ), content: { - title, - tagline: translate( 'You’ll be able to customize this to your needs.' ), + title: preventWidows( title ), + tagline: preventWidows( translate( 'You’ll be able to customize this to your needs.' ) ), body: this.getContent( verticalPreviewContent ), }, langSlug,