Skip to content

Commit

Permalink
Merge pull request #2676 from alphagov/402-add-our-accessibility-stat…
Browse files Browse the repository at this point in the history
…ement-to-signon

Add accessibility statement for signon
  • Loading branch information
chrislo authored Feb 5, 2024
2 parents 7bdd6ee + 7f4561b commit d15525b
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/root_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class RootController < ApplicationController
include UserPermissionsControllerMethods
before_action :authenticate_user!, except: :privacy_notice
before_action :authenticate_user!, except: %i[privacy_notice accessibility_statement]
skip_after_action :verify_authorized

def index
Expand All @@ -15,6 +15,8 @@ def signin_required

def privacy_notice; end

def accessibility_statement; end

private

def show_user_research_recruitment_banner?
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
href: privacy_notice_path,
text: "Privacy notice",
},
{
href: accessibility_statement_path,
text: "Accessibility statement",
},
{
href: "https://status.publishing.service.gov.uk/",
text: "Check if publishing apps are working or if there’s any maintenance planned",
Expand Down
123 changes: 123 additions & 0 deletions app/views/root/accessibility_statement.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<% content_for :title, "Accessibility statement" %>
<% content_for :page_heading, "GOV.UK Publisher Signon ‒ Accessibility statement" %>

<p class="govuk-body">This statement applies to content published on the signon.publishing.service.gov.uk domain. It does not apply to content on service.gov.uk subdomains (for example, www.registertovote.service.gov.uk) or on GOV.UK.</p>

<p class="govuk-body">This website is run by the Government Digital Service. It is designed to be used by as many people as possible. The text should be clear and simple to understand. You should be able to:</p>

<%= render "govuk_publishing_components/components/list", {
visible_counters: true,
items: [
"zoom in up to 300% without problems",
"navigate most of the website using just a keyboard",
"navigate most of the website using speech recognition software",
"use most of the website using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)",
]
} %>
<%= render "govuk_publishing_components/components/heading", {
text: "How accessible this website is",
padding: true,
} %>

<p class="govuk-body">Parts of this website are not fully accessible. For example:</p>

<%= render "govuk_publishing_components/components/list", {
visible_counters: true,
items: [
"pages with a contents section are incorrectly structured when viewed at 300% zoom",
]
} %>
<%= render "govuk_publishing_components/components/heading", {
text: "GOV.UK services",
padding: true,
} %>

<p class="govuk-body">Each service has its own accessibility page, with details of how accessible the service is, how to report problems and how to request information in an alternative format. You can access these pages from the footer inside the service.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Feedback and contact information",
padding: true,
} %>

<p class="govuk-body"><%= link_to "Tell us if you need information in a different format.", "https://www.gov.uk/contact/govuk", class: "govuk-link" %></p>

<p class="govuk-body">In your message, include:</p>

<%= render "govuk_publishing_components/components/list", {
visible_counters: true,
items: [
"the web address (URL) of the content",
"your email address and name",
"the format you need – for example, plain text, braille, BSL, large print or audio CD",
]
} %>

<p class="govuk-body">You can request a PDF in an accessible format from its page. Click ‘Request an accessible format’ to contact the organisation that published the document.</p>

<p class="govuk-body">You can also view the organisation’s <%= link_to "accessible document policy", "https://www.gov.uk/search/all?parent=&keywords=%22accessible+document+policy%22&level_one_taxon=a544d48b-1e9e-47fb-b427-7a987c658c14&level_two_taxon=&manual=&public_timestamp%5Bfrom%5D=&public_timestamp%5Bto%5D=&topical_events=&order=relevance" %> to report any problems or request documents in an alternative format.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Reporting accessibility problems with this website",
padding: true,
} %>

<p class="govuk-body">If you find any problems that are not listed on this page or you think we’re not meeting the accessibility requirements, <%= link_to "contact us", "https://www.gov.uk/contact/govuk" %>.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Enforcement procedure",
padding: true,
} %>

<p class="govuk-body">If you contact us with a complaint and you’re not happy with our response <%= link_to "contact the Equality Advisory and Support Service (EASS)", "https://www.equalityadvisoryservice.com/" %>.</p>

<p class="govuk-body">The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’).</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Technical information about this website’s accessibility",
padding: true,
} %>

<p class="govuk-body">The Government Digital Service is committed to making its websites accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Compliance status",
padding: true,
} %>

<p class="govuk-body">This website is partially compliant with the <%= link_to "Web Content Accessibility Guidelines version 2.2", "https://www.w3.org/TR/WCAG22/" %> AA standard.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Non-accessible content",
padding: true,
heading_level: 3,
font_size: "s",
} %>

<p class="govuk-body">The content listed below is non-accessible for the following reasons.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Non-compliance with the accessibility regulations",
padding: true,
heading_level: 4,
font_size: "s",
} %>

<p class="govuk-body">The page contents list does not have correct semantic markup when viewed at 300%, or greater.</p>

<p class="govuk-body">This fails WCAG 2.2 success criterion 1.3.1: (Info and Relationships).</p>

<%= render "govuk_publishing_components/components/heading", {
text: "What we’re doing to improve accessibility",
padding: true,
} %>

<p class="govuk-body">We are working with contractors to ensure that pages with a contents list are correctly structured. A fix is expected to be in place by spring 2024.</p>

<%= render "govuk_publishing_components/components/heading", {
text: "Preparation of this accessibility statement",
padding: true,
} %>

<p class="govuk-body">This statement was prepared on 10 January 2024. It was last reviewed on 10 January 2024.</p>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@

get "/signin-required" => "root#signin_required"
get "/privacy-notice" => "root#privacy_notice"
get "/accessibility-statement" => "root#accessibility_statement"

root to: "root#index"

Expand Down
5 changes: 5 additions & 0 deletions test/controllers/root_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ def setup
create(:application, name: "Support")
end

test "visiting root#accessibility_statement should succeed" do
get :accessibility_statement
assert_equal "200", response.code
end

test "visiting root#index should require authentication" do
get :index
assert_equal "302", response.code
Expand Down

0 comments on commit d15525b

Please sign in to comment.