Skip to content

Commit ff325b5

Browse files
committed
Add custom error message for Country Search input errors
1 parent 9156145 commit ff325b5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

LearningHub.Nhs.WebUI/Styles/nhsuk/pages/createaccount.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@
7272
.no-bottom-border {
7373
border-bottom: 0px;
7474
}
75+
76+
.custom-validation-error {
77+
color: #d5281b;
78+
font-size: 19px;
79+
}
7580
}

LearningHub.Nhs.WebUI/Views/Account/CreateAccountCountrySearch.cshtml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
</svg>
3232
<span class="nhsuk-u-visually-hidden">Search</span>
3333
</button>
34-
34+
</div>
35+
<div>
36+
@if (errorHasOccurred)
37+
{
38+
<span class="custom-validation-error">@CommonValidationErrorMessages.SearchTermRequired</span>
39+
}
3540
</div>
3641
</form>
3742

0 commit comments

Comments
 (0)