Skip to content

Commit

Permalink
Merge pull request #729 from DFE-Digital/bug/188999-accessibility-issue
Browse files Browse the repository at this point in the history
Fixed accessibility issues for both adding trust and school pages
  • Loading branch information
dangood84 authored Nov 26, 2024
2 parents dcc10c0 + 7faad7f commit 7fd7955
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,25 @@

<h2 class="govuk-caption-l">School details</h2>
<fieldset class="govuk-fieldset" data-required data-error="Search cannot be blank" aria-required="true">
<div id="SearchQueryContainer" class="govuk-form-group">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h2 class="govuk-fieldset__heading govuk-heading-m">
What is the name of the school?
</h2>
</legend>
<label class="govuk-hint"
for="schoolSelect">
Enter the name of the school, or its 6 digit unique reference number (URN)
</label>
<span asp-validation-for="SearchQuery" class="govuk-error-message"></span>
<input id='SearchQueryInput' asp-for="@Model.SearchQuery"
class="govuk-input govuk-input--width-20"
maxlength="100"
type="search" aria-valuetext=""
aria-describedby="search-hint search-error"/>
<div id="autocomplete-container" data-cy="schoolSearchBox"></div>
@* <ul class="autocomplete__menu autocomplete__menu--inline autocomplete__menu--hidden" id="search__listbox" role="listbox">
<li class="autocomplete__option autocomplete__option--no-results">No results found.</li>
</ul>*@
</div>
<div id="SearchQueryContainer" class="govuk-form-group">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h2 class="govuk-fieldset__heading govuk-heading-m">
What is the name of the school?
</h2>
</legend>
<label class="govuk-hint" id="search-hint" for="SearchQueryInput">
Enter the name of the school, or its 6 digit unique reference number (URN)
</label>
<span asp-validation-for="SearchQuery" class="govuk-error-message" id="search-error"></span>
<input id="SearchQueryInput"
asp-for="@Model.SearchQuery"
class="govuk-input govuk-input--width-20"
maxlength="100"
type="search"
aria-describedby="search-hint search-error" />
<div id="autocomplete-container" data-cy="schoolSearchBox"></div>
</div>


<div class="govuk-form-group">
<div id="schoolSelectedDetails" class="hideElement"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
Which trust is the school joining?
</h2>
</legend>
<label class="govuk-hint"
for="schoolSelect">
<label class="govuk-hint" id="search-hint"
for="SearchQueryInput">
Enter the name of the trust, its Companies House number, or its group Id
</label>
<span asp-validation-for="SearchQuery" class="govuk-error-message"></span>
<span asp-validation-for="SearchQuery" class="govuk-error-message" id="search-error"></span>
<input id='SearchQueryInput' asp-for="@Model.SearchQuery"
class="govuk-input govuk-input--width-20"
maxlength="100"
Expand Down

0 comments on commit 7fd7955

Please sign in to comment.