Skip to content

Commit c1e9ba4

Browse files
committed
CCM-8873 Add personalisation copy
1 parent 1df2ebb commit c1e9ba4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

frontend/src/components/molecules/Personalisation/Personalisation.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ export function Personalisation() {
1515
</Details.Summary>
1616
<Details.Text data-testid='personalisation-text'>
1717
<p>{personalisationContent.details.text1}</p>
18-
<code>{personalisationContent.details.codeBlockText}</code>
18+
<span
19+
id='personalisation-description'
20+
className='nhsuk-u-visually-hidden'
21+
>
22+
{personalisationContent.hiddenCodeBlockDescription}
23+
</span>
24+
<code aria-describedby='personalisation-description'>
25+
{personalisationContent.details.codeBlockText}
26+
</code>
1927
<p className='nhsuk-u-margin-top-4'>
2028
{personalisationContent.details.text2}
2129
</p>

frontend/src/content/content.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const footer = {
4949

5050
const personalisation = {
5151
header: 'Personalisation',
52+
hiddenCodeBlockDescription: 'An example of personalised message content:',
5253
details: {
5354
title: 'Personalisation fields',
5455
text1:
@@ -77,7 +78,7 @@ const personalisation = {
7778

7879
const messageFormatting = {
7980
header: 'Message formatting',
80-
hiddenCodeBlockDescription: 'Markdown example:',
81+
hiddenCodeBlockDescription: 'An example of markdown:',
8182
lineBreaksAndParagraphs: {
8283
title: 'Line breaks and paragraphs',
8384
text1:

0 commit comments

Comments
 (0)