Skip to content

Commit fe5db2c

Browse files
Fix heading levels on patient session page
1 parent f73b2f9 commit fe5db2c

7 files changed

Lines changed: 11 additions & 13 deletions

File tree

app/views/patient-session/_consent.njk

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{% call card({
66
heading: __("patientSession.consent.title", programme.nameSentenceCase),
7-
headingLevel: 3
7+
headingSize: "m"
88
}) %}
99
{# Description #}
1010
{% if not isVaccinated %}
@@ -42,7 +42,7 @@
4242
{% if patientSession.replies | length %}
4343
{# Requests with responses or requests that couldn’t be delivered #}
4444
{{ appHeading({
45-
level: 4,
45+
level: 3,
4646
size: "s",
4747
title: __("patientSession.replies.responses") if patientSession.responses.length > 0 else __("patientSession.replies.requests")
4848
}) }}
@@ -52,8 +52,7 @@
5252
card: {
5353
classes: "app-card--compact app-card--offset",
5454
heading: reply.fullNameAndRelationship,
55-
headingLevel: 5,
56-
headingSize: "s",
55+
headingLevel: 4,
5756
href: reply.uri if reply.delivered,
5857
actions: {
5958
items: [
@@ -90,7 +89,7 @@
9089
{# We don’t create replies so use parent details instead #}
9190

9291
{{ appHeading({
93-
level: 4,
92+
level: 3,
9493
size: "s",
9594
title: __("patientSession.replies.pending")
9695
}) }}
@@ -100,7 +99,7 @@
10099
card: {
101100
classes: "app-card--compact app-card--offset",
102101
heading: parent.fullNameAndRelationship,
103-
headingLevel: 5
102+
headingLevel: 4
104103
},
105104
rows: summaryRows(parent, {
106105
tel: {},
@@ -126,7 +125,7 @@
126125
heading: __mf("healthAnswers.count", {
127126
count: patientSession.answersNeedingTriageCount
128127
}),
129-
headingLevel: 3
128+
headingSize: "m"
130129
},
131130
classes: "app-summary-list--full-width",
132131
rows: healthAnswerRows(patientSession.consentHealthAnswers)

app/views/patient-session/_gillick.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% call card({
44
heading: __("patientSession.gillick.title"),
5-
headingLevel: 3
5+
headingSize: "m"
66
}) %}
77
{# Description #}
88
{% if patientSession.gillick %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ card({
22
heading: __("patientSession.instruct.title"),
3-
headingLevel: 3,
3+
headingSize: "m",
44
description: patientSession.status.instruct.text
55
}) }}

app/views/patient-session/_record.njk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
{% call card({
1717
heading: heading | safe,
18-
headingLevel: 3,
1918
headingSize: "m"
2019
}) %}
2120
{{ radios({

app/views/patient-session/_register.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% call card({
22
heading: __("patientSession.register.title"),
3-
headingLevel: 3
3+
headingSize: "m"
44
}) %}
55
{# Description #}
66
{{ patientSession.registerNotes | nhsukMarkdown }}

app/views/patient-session/_report.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
feature: true,
44
heading: programme.name + ": " + (patientSession.patientProgramme.status | lower),
55
headingClasses: "app-card__heading--" + patientSession.patientProgramme.statusColour,
6-
headingLevel: 3
6+
headingSize: "m"
77
}) %}
88
{# Description #}
99
{{ patientSession.reportNotes | nhsukMarkdown }}

app/views/patient-session/_triage.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% call card({
44
heading: __("patientSession.screen.title", programme.nameSentenceCase),
5-
headingLevel: 3
5+
headingSize: "m"
66
}) %}
77
{# Description #}
88
{{ patientSession.screenNotes | nhsukMarkdown }}

0 commit comments

Comments
 (0)