Skip to content

Commit 9a41832

Browse files
committed
TD:4079: DIG301: Form fields are not associated with text labels
1 parent 3f021d0 commit 9a41832

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

LearningHub.Nhs.WebUI/Views/Shared/Components/NavigationItems/MobileTopRightNav.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ else
2424
<div class="nhsuk-header__mobile-break"></div>
2525
@if (Model.ShowSearch)
2626
{
27-
<label class="nhsuk-header__search-toggle" id="toggle-search" aria-controls="search" aria-label="Open search">
27+
<button class="nhsuk-header__search-toggle" id="toggle-search" aria-controls="search" aria-label="Open search">
2828
<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false" width="27" height="27">
2929
<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>
3030
</svg>
3131
<span class="nhsuk-u-visually-hidden">Search</span>
32-
</label>
32+
</button>
3333
}
3434
}
3535

LearningHub.Nhs.WebUI/Views/Shared/_NavPartial.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949

5050
</div>
5151
@if (User.Identity.IsAuthenticated) {
52-
<input type="checkbox" id="header-dropdown-menu-control" aria-labelledby="Main navigation menu" role="button">
52+
<input type="checkbox" id="header-dropdown-menu-control" aria-labelledby="label-navigation" role="button">
5353
<nav class="nhsuk-header__navigation app-width-container" id="header-navigation" role="navigation" aria-label="Primary navigation" aria-labelledby="label-navigation">
5454
<p class="nhsuk-header__navigation-title"><span id="label-navigation">Menu</span>
55-
<label class="nhsuk-header__navigation-close" id="close-menu">
55+
<button class="nhsuk-header__navigation-close" id="close-menu">
5656
<svg class="nhsuk-icon nhsuk-icon__close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false" width="27" height="27">
5757
<path d="M13.41 12l5.3-5.29a1 1 0 1 0-1.42-1.42L12 10.59l-5.29-5.3a1 1 0 0 0-1.42 1.42l5.3 5.29-5.3 5.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l5.29-5.3 5.29 5.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"></path>
5858
</svg>
5959
<span class="nhsuk-u-visually-hidden">Close menu</span>
60-
</label>
60+
</button>
6161
</p>
6262
<ul class="nhsuk-header__navigation-list @BasicUserPaddingClass()">
6363
@await Component.InvokeAsync("NavigationItems")

0 commit comments

Comments
 (0)