From cf1fb446dd456655648d0ec2ccc8ae88c56e98d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 17 Feb 2025 23:45:30 +0100 Subject: [PATCH] include: a11y: remove first heading for screen reader if hideFirstHeading #1028 --- assets/css/theme.css | 15 ++++++--------- layouts/partials/version.txt | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/assets/css/theme.css b/assets/css/theme.css index 10b4b88958..dbaa2b9495 100644 --- a/assets/css/theme.css +++ b/assets/css/theme.css @@ -1646,15 +1646,6 @@ html[dir='rtl'] .expand[open] > .box-label > i.expander-icon { display: none; } -.include.hide-first-heading h1:first-of-type, -.include.hide-first-heading h2:first-of-type, -.include.hide-first-heading h3:first-of-type, -.include.hide-first-heading h4:first-of-type, -.include.hide-first-heading h5:first-of-type, -.include.hide-first-heading h6:first-of-type { - display: none; -} - .include.hide-first-heading h1 ~ h2:first-of-type, .include.hide-first-heading h1 ~ h3:first-of-type, .include.hide-first-heading h2 ~ h3:first-of-type, @@ -2021,6 +2012,12 @@ span.math:has(> mjx-container[display]) { top: -9999px; } +.include.hide-first-heading h1:first-of-type, +.include.hide-first-heading h2:first-of-type, +.include.hide-first-heading h3:first-of-type, +.include.hide-first-heading h4:first-of-type, +.include.hide-first-heading h5:first-of-type, +.include.hide-first-heading h6:first-of-type, .a11y-only { /* idea taken from https://www.filamentgroup.com/lab/a11y-form-labels.html */ clip-path: polygon(0 0, 1px 0, 1px 1px, 0 1px); diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index 4405f46cf3..14a9d95200 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.3.2+59414a1b792e2ad40d66ac9c49c9dd8dd0becb39 \ No newline at end of file +7.3.2+a9cc5c74d60c6f4467a9e710ce73eca13235eb12 \ No newline at end of file