Skip to content

Commit

Permalink
Use preventWidows on mockup title and tagline.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldcain authored and ramonjd committed May 1, 2019
1 parent 4479631 commit 43e189f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/signup/site-mockup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 43e189f

Please sign in to comment.