Skip to content

Commit

Permalink
Remove unnecessary text to avoid screen-reader duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDoyle-DEFRA committed Sep 9, 2024
1 parent ecaf74b commit 5590cb1
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<%= form_for @check_registered_company_name_form do |f| %>
<%= render partial: "waste_carriers_engine/shared/error_summary", locals: { f: f } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<% else %>
<%= form_for(@check_your_answers_form) do |f| %>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>

<% if @presenter.new_registration? %>
<p class="govuk-body"><%= t(".new_registration.#{@presenter.tier}") %></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading.#{@company_address_form.business_type}") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading.#{@company_address_form.business_type}") %>
</legend>

<p class="govuk-body">
<%= t(".postcode_label") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading.#{@company_address_manual_form.business_type}") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading.#{@company_address_manual_form.business_type}") %>
</legend>


<% unless @company_address_manual_form.overseas? %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<%= t(".heading.#{@company_postcode_form.business_type}") %>
</h1>
<p class="govuk-body"><%= t(".page_hint") %></p>
<legend class="govuk-visually-hidden">
<%= t(".heading.#{@company_postcode_form.business_type}") %>
</legend>
<%= f.govuk_text_field :temp_company_postcode,
width: "one-half",
label: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<p class="govuk-body">
<%= t(".postcode_label") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>


<% unless @contact_address_manual_form.overseas? %>
<p class="govuk-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<% if @transient_registration.upper_tier? %>
<p class="govuk-body"><%= t(".paragraph_1") %></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<p class="govuk-body"><%= t(".description") %></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<%= f.govuk_text_field :phone_number,
label: { text: t(".phone_number_label") },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<p class="govuk-body">
<%= t(".detail_paragraph") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<p class="govuk-body">
<%= t(".paragraph_1") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading", reg_id: @transient_registration.reg_identifier) %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading", reg_id: @transient_registration.reg_identifier) %>
</legend>

<h2 class="govuk-heading-m"><%= t(".subheading_1") %></h2>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<p class="govuk-body"><%= t(".description") %></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading", ch_number: @transient_registration.company_no) %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading", ch_number: @transient_registration.company_no) %>
</legend>

<p class="govuk-body"><%= t(".description") %></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading.#{@main_people_form.business_type}") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading.#{@main_people_form.business_type}") %>
</legend>

<p class="govuk-body">
<%= t(".description_1.#{@main_people_form.business_type}") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_for(@must_register_in_scotland_form) do |f| %>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<p class="govuk-body"><%= t(".paragraph_1") %></p>
<p class="govuk-body"><%= t(".paragraph_2") %> <a href="https://www.sepa.org.uk/regulations/waste/waste-carriers-and-brokers/"><%= t(".service_link") %></a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_for(@must_register_in_wales_form) do |f| %>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<p class="govuk-body"><%= t(".paragraph_1") %></p>
<p class="govuk-body"><%= t(".paragraph_2") %> <a href="https://naturalresourceswales.gov.uk/permits-and-permissions/waste-permitting/register-as-a-waste-carrier-broker-or-dealer/"><%= t(".service_link") %></a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_for(@register_in_northern_ireland_form) do |f| %>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<p class="govuk-body"><%= t(".paragraph_1_1") %>
<a href="https://www.daera-ni.gov.uk/articles/registration-carriers-and-brokers">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_for(@register_in_scotland_form) do |f| %>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<p class="govuk-body"><%= t(".paragraph_1") %></p>
<p class="govuk-body"><%= t(".paragraph_2") %> <a href="https://www.sepa.org.uk/regulations/waste/waste-carriers-and-brokers/"><%= t(".service_link") %></a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_for(@register_in_wales_form) do |f| %>
<legend class="govuk-visually-hidden"><%= t(".heading") %></legend>
<h1 class="govuk-heading-l"><%= t(".heading") %></h1>
<p class="govuk-body"><%= t(".paragraph_1") %></p>
<p class="govuk-body"><%= t(".paragraph_2") %> <a href="https://naturalresourceswales.gov.uk/permits-and-permissions/waste-permitting/register-as-a-waste-carrier-broker-or-dealer/"><%= t(".service_link") %></a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading.#{@registration_number_form.business_type}") %>
</h1>
<span class="govuk-visually-hidden">
<%= t(".heading.#{@registration_number_form.business_type}") %>
</span>

<%= f.govuk_text_field :company_no,
label: { text: t(".company_no_label") },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<%= f.govuk_text_field :temp_lookup_number,
width: "one-half",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading") %>
</legend>

<%= form_for @use_trading_name_form do |f| %>
<%= render partial: "waste_carriers_engine/shared/error_summary", locals: { f: f } %>
Expand Down
3 changes: 0 additions & 3 deletions app/views/waste_carriers_engine/your_tier_forms/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<h1 class="govuk-heading-l">
<%= t(".heading.#{@transient_registration.tier}") %>
</h1>
<legend class="govuk-visually-hidden">
<%= t(".heading.#{@transient_registration.tier}") %></h1>
</legend>
<p class="govuk-body">
<%= t(".paragraph_1.#{@transient_registration.tier}") %>
</p>
Expand Down
1 change: 0 additions & 1 deletion spec/dummy/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<% end %>
<% content_for :footer do %>
<span class="govuk-visually-hidden"><%= ".support_text" %></span>
<p class="govuk-!-font-weight-bold"><%= ".support_text" %></p>
<ul class="govuk-footer__inline-list">
<li class="govuk-footer__inline-list-item">
Expand Down

0 comments on commit 5590cb1

Please sign in to comment.