diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 64f364925..221b6a027 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -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 @@ -15,6 +15,8 @@ def signin_required def privacy_notice; end + def accessibility_statement; end + private def show_user_research_recruitment_banner? diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 886929f20..1fdbdacbc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -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", diff --git a/app/views/root/accessibility_statement.html.erb b/app/views/root/accessibility_statement.html.erb new file mode 100644 index 000000000..d20c736c2 --- /dev/null +++ b/app/views/root/accessibility_statement.html.erb @@ -0,0 +1,123 @@ +<% content_for :title, "Accessibility statement" %> +<% content_for :page_heading, "GOV.UK Publisher Signon ‒ Accessibility statement" %> + +

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.

+ +

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:

+ +<%= 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, +} %> + +

Parts of this website are not fully accessible. For example:

+ +<%= 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, +} %> + +

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.

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

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

+ +

In your message, include:

+ +<%= 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", + ] +} %> + +

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.

+ +

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.

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

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" %>.

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

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/" %>.

+ +

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’).

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

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.

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

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

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

The content listed below is non-accessible for the following reasons.

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

The page contents list does not have correct semantic markup when viewed at 300%, or greater.

+ +

This fails WCAG 2.2 success criterion 1.3.1: (Info and Relationships).

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

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.

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

This statement was prepared on 10 January 2024. It was last reviewed on 10 January 2024.

diff --git a/config/routes.rb b/config/routes.rb index d3a784e3f..9820ad93c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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" diff --git a/test/controllers/root_controller_test.rb b/test/controllers/root_controller_test.rb index 1afb21df6..20319de2b 100644 --- a/test/controllers/root_controller_test.rb +++ b/test/controllers/root_controller_test.rb @@ -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