From a284b120b7f343cf9f194cb8157fd2fbc0f38a40 Mon Sep 17 00:00:00 2001 From: Alan Gabbianelli Date: Thu, 25 Feb 2021 16:27:50 +0000 Subject: [PATCH] Stop linking images to new tab This fixes one of our [accessibility issues][1]. Specifically, it will prevent images to link to new tabs without telling the user, which fails [WCAG 2.1 success criterion 2.4.4 Link Purpose (in context)][2]. [1]: https://docs.google.com/spreadsheets/d/1s53eGMBj2hdTVLRitwi673R-_uERWh0kOxOp9QsOVg0 [2]: https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-refs.html Trello card: https://trello.com/c/vv0OR35g/630-march-update-tech-docs-template --- lib/govuk_tech_docs/tech_docs_html_renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/govuk_tech_docs/tech_docs_html_renderer.rb b/lib/govuk_tech_docs/tech_docs_html_renderer.rb index e2d4f236..a5805775 100644 --- a/lib/govuk_tech_docs/tech_docs_html_renderer.rb +++ b/lib/govuk_tech_docs/tech_docs_html_renderer.rb @@ -20,7 +20,7 @@ def header(text, level) end def image(link, *args) - %(#{super}) + %(#{super}) end def table(header, body)