From f798de7e63a4a9fd1ee17031997b21eb185acd29 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 19 May 2022 17:18:14 -0700 Subject: [PATCH] A11y: drop draft ARIA, overhaul in-page links - Stop using draft WAI-ARIA 1.3 that isn't supported yet - Make in-page links focusable across shortcodes/partials - Replace existing in-page heading anchor links with a more accessible option. - Make backlinks aria-labelledby instead of giving them an aria-label, so they can be translated. --- assets/css/main.css | 8 ++- layouts/_default/_markup/render-heading.html | 9 +-- layouts/partials/full-article.html | 2 +- layouts/partials/processed-content.html | 27 ++++--- layouts/partials/webmentions.html | 76 +++++++++++--------- layouts/shortcodes/codecaption.html | 2 +- layouts/shortcodes/image-figure.html | 2 +- layouts/shortcodes/quotation.html | 2 +- layouts/shortcodes/transcribed-image.html | 3 +- linter-configs/vnu_filter.jq | 5 -- 10 files changed, 75 insertions(+), 61 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index a879ac3..5b69347 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -62,7 +62,7 @@ html { * between tappables" by creating margins/paddings between nav links; * re-use that same amount of space here. 24px is what it takes to * create atl 48px of non-interactive space on