Skip to content

Commit 9156145

Browse files
committed
Associate error label with target input
1 parent 998a23b commit 9156145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<input type="hidden" name="formSubmission" value="true">
2525
<label for="FilterText" class="nhsuk-body-l nhsuk-u-font-size-19 nhsuk-u-margin-bottom-3">Search for example, England</label>
2626
<div class="nhsuk-form-group search-box-container" style="white-space:nowrap">
27-
<input class="nhsuk-input nhsuk-search__input" type="search" autocomplete="off" id="FilterText" name="FilterText" placeholder="" value="@Model.FilterText">
27+
<input class="nhsuk-input nhsuk-search__input" type="search" autocomplete="off" id="FilterText" name="FilterText" placeholder="" value="@Model.FilterText" @if(errorHasOccurred){<text>aria-describedby="error-summary-title"</text>}>
2828
<button class="nhsuk-search__submit" type="submit">
2929
<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
3030
<path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path>

0 commit comments

Comments
 (0)