include: a11y: remove first heading for screen reader if hideFirstHeading #1028

This commit is contained in:
Sören Weber 2025-02-17 23:45:30 +01:00
parent a9cc5c74d6
commit cf1fb446dd
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 7 additions and 10 deletions

View file

@ -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);

View file

@ -1 +1 @@
7.3.2+59414a1b792e2ad40d66ac9c49c9dd8dd0becb39
7.3.2+a9cc5c74d60c6f4467a9e710ce73eca13235eb12