File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
components/molecules/Personalisation Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ const footer = {
4949
5050const 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
7879const 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 :
You can’t perform that action at this time.
0 commit comments