From 60350747a55bd8353c8bd72d5d890e8cf600bf98 Mon Sep 17 00:00:00 2001 From: Damien Senger Date: Sat, 13 Apr 2019 12:19:11 +0200 Subject: [PATCH] Adds a label to social sharing links According to the WCAG (success criterias 2.4.4 and 4.1.2), the purpose of each link should be determined from the link text alone or from the link text together with its programmatically determined link context. In this case, because there is no text content, we are using `aria-label` to have an explicit purpose announced to users of assisting technologies. Resources: - https://dequeuniversity.com/rules/axe/3.2/link-name - https://www.w3.org/TR/WCAG21/#link-purpose-in-context - https://www.w3.org/TR/WCAG20-TECHS/ARIA8.html --- templates/inc/header.tpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/inc/header.tpl b/templates/inc/header.tpl index bf476df..844757e 100644 --- a/templates/inc/header.tpl +++ b/templates/inc/header.tpl @@ -18,9 +18,12 @@ {/if}
- - + +