Skip to content

Commit d4953ac

Browse files
committed
Fix prerelease banner contrast and baseline website-accessibility code blocks
1 parent bf67173 commit d4953ac

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎_axe-baseline.json‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@
99
},
1010
{
1111
"signature": "scrollable-region-focusable :: .code-with-filename > .code-with-filename-file > pre",
12-
"pages": ["docs/extensions/brand.html", "docs/extensions/filters.html", "docs/extensions/formats.html", "docs/extensions/revealjs.html", "docs/extensions/shortcodes.html", "docs/journals/formats.html", "docs/websites/website-drafts.html"],
12+
"pages": ["docs/extensions/brand.html", "docs/extensions/filters.html", "docs/extensions/formats.html", "docs/extensions/revealjs.html", "docs/extensions/shortcodes.html", "docs/journals/formats.html", "docs/websites/website-accessibility.html", "docs/websites/website-drafts.html"],
13+
"impact": "serious",
14+
"note": "upstream: quarto-dev/quarto-cli#14378. Scrollable code blocks and cell outputs have no tabindex, so keyboard users cannot scroll them. Clears when quarto-dev/quarto-cli#14816 ships."
15+
},
16+
{
17+
"signature": "scrollable-region-focusable :: #your-first-scan > pre",
18+
"pages": ["docs/websites/website-accessibility.html"],
19+
"impact": "serious",
20+
"note": "upstream: quarto-dev/quarto-cli#14378. Scrollable code blocks and cell outputs have no tabindex, so keyboard users cannot scroll them. Clears when quarto-dev/quarto-cli#14816 ships."
21+
},
22+
{
23+
"signature": "scrollable-region-focusable :: #checking-accessibility-in-ci > .code-with-filename > .code-with-filename-file > pre",
24+
"pages": ["docs/websites/website-accessibility.html"],
1325
"impact": "serious",
1426
"note": "upstream: quarto-dev/quarto-cli#14378. Scrollable code blocks and cell outputs have no tabindex, so keyboard users cannot scroll them. Clears when quarto-dev/quarto-cli#14816 ships."
1527
},

‎_quarto-prerelease-docs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ format:
1919
toc: true
2020
theme:
2121
light: [cosmo, theme.scss, theme-prerelease-docs.scss]
22+
dark: [cosmo, theme-dark.scss, theme-prerelease-docs.scss]

‎theme-prerelease-docs.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/*-- scss:rules --*/
22

3+
// #e60033 keeps the red but gives white text 4.76:1 (WCAG 1.4.3 needs 4.5:1).
4+
// Cosmo's $danger (#ff0039) gives only 3.95:1.
35
#quarto-announcement {
46
font-size: 1em;
57
font-weight: bold;
68
color: $white;
7-
background-color: $danger;
8-
}
9+
background-color: #e60033;
10+
}

0 commit comments

Comments
 (0)