Skip to content

Commit 426e574

Browse files
committed
Change date of birth page header font size
1 parent 941a7ba commit 426e574

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lung_cancer_screening/nhsuk_forms/jinja2/date-input.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"fieldset": {
1111
"legend": {
1212
"text": field.label,
13-
"classes": "nhsuk-fieldset__legend--m",
13+
"classes": unbound_field.label_classes if unbound_field.label_classes else "nhsuk-fieldset__legend--m",
1414
"isPageHeading": unbound_field.label_is_page_heading
1515
}
1616
} if field.label,

lung_cancer_screening/nhsuk_forms/split_date_field.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def __init__(self, *args, **kwargs):
6969
max_value = kwargs.pop("max_value", datetime.date.today())
7070
min_value = kwargs.pop("min_value", datetime.date(1900, 1, 1))
7171
self.label_is_page_heading = kwargs.pop("label_is_page_heading", False)
72+
self.label_classes = kwargs.pop("label_classes", "")
7273
self.hint = kwargs.pop("hint", None)
7374

7475
day_bounds_error = kwargs.get("error_messages", {}).pop("day_bounds", gettext("Day should be between 1 and 31."))

lung_cancer_screening/questions/forms/date_of_birth_form.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def __init__(self, *args, **kwargs):
1717
require_all_fields=False,
1818
label="What is your date of birth?",
1919
label_is_page_heading=True,
20+
label_classes="nhsuk-fieldset__legend--l",
2021
hint="For example, 15 3 1965",
2122
error_messages={
2223
'required': 'Enter your date of birth',

0 commit comments

Comments
 (0)