Skip to content

Commit

Permalink
Ensure alternatate email label links to select
Browse files Browse the repository at this point in the history
The accessibility audit covered labels linking correctly to inputs/selects.
This label came back as not working correctly. This is due to the for
value not being the same as the selects id.
  • Loading branch information
davidgisbey committed Dec 11, 2023
1 parent 7599f37 commit 6722646
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="govuk-!-margin-bottom-6">
<% if edition.respond_to?(:alternative_format_provider) %>
<div class="govuk-form-group gem-c-select">
<label class="govuk-label govuk-label--m govuk-!-font-weight-bold" for="alternative_format_provider_id">
<label class="govuk-label govuk-label--m govuk-!-font-weight-bold" for="edition_alternative_format_provider_id">
Email address for ordering attachment files in an alternative format <%= "(required)" if edition.alternative_format_provider_required? %>
</label>

Expand Down

0 comments on commit 6722646

Please sign in to comment.