From 0ec53be2da973763b704a53cff127e5583eee1be Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Fri, 4 Dec 2020 09:55:38 +0000 Subject: [PATCH] Give the cookie banner an accessible name Our cookie banner has an accessible description but no accessible name. It needs to have an accessible name to distinguish it from other elements on the page with role=region. There's some advice in the WCAG guidance that explains this more: https://www.w3.org/TR/WCAG20-TECHS/ARIA11.html This issue was raised in the accessibility review done as part of our service assessment. These changes borrow the approach from www.gov.uk of moving to a label and losing the accessible description. It also uses the 'cookie banner' label for consistency with www.gov.uk. --- app/templates/components/cookie-banner.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/components/cookie-banner.html b/app/templates/components/cookie-banner.html index d642a37d7..53803dd89 100644 --- a/app/templates/components/cookie-banner.html +++ b/app/templates/components/cookie-banner.html @@ -1,6 +1,6 @@ {% macro cookie_banner(id='global-cookie-message') %} -