Skip to content

Commit 1e910f6

Browse files
authored
Merge pull request #14334 from guardian/jm/fix-sign-in-gate-support-line-breaks
fix: update sign-in gate content formatting and add line-break support
2 parents 9d74d6f + 8bddd45 commit 1e910f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dotcom-rendering/fixtures/manual/sign-in-gate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const mockAuxiaResponseDismissible = {
88
treatmentContent: JSON.stringify({
99
title: 'Like uninterrupted reading?\nSo do we. Sign in.',
1010
subtitle:
11-
"Sign in to keep reading. It's free, and we'll bring you right back here in under a minute.",
11+
"Sign in to keep reading.\n\nIt's free, and we'll bring you right back here in under a minute.",
1212
body: '',
1313
first_cta_name: 'Create a free account',
1414
first_cta_link: 'https://profile.theguardian.com/register',

dotcom-rendering/src/components/SignInGate/gateDesigns/SignInGateAuxiaV1.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ const subHeadingStyles = css`
200200
const descriptionText = css`
201201
${textSans15};
202202
padding-bottom: ${space[6]}px;
203+
white-space: pre-line;
203204
204205
${from.phablet} {
205206
${textSans17};

0 commit comments

Comments
 (0)