You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 13b7e59
Browse filesBrowse the repository at this point in the historyBrowse files
Add standard and best-practice options to axe (#14607) (#14682)
Add `standard` and `best-practice` options to `axe`
The `axe` accessibility checker previously always ran axe-core's default
rule set. These options let a document scope its accessibility scan to a
WCAG conformance level and control whether axe's best-practice rules run.
Behavior is unchanged when neither option is set.
- `standard` — scope checks to a WCAG level (`wcag2a` … `wcag22aaa`),
including rules axe-core keeps disabled by default for that level, such
as AAA color contrast and `target-size`
- `best-practice` — check or skip axe's best-practice rules, which are
recommendations not required by any WCAG success criterion
- Object-form `axe` options now default to `output: console`, so a bare
`axe: {standard: …}` reports instead of silently doing nothing
- `preload` is now passed as an `axe.run` option rather than on its
context argument
Fixes#14607.
Copy file name to clipboardExpand all lines: news/changelog-1.10.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ All changes included in 1.10:
18
18
- ([#14468](https://github.com/quarto-dev/quarto-cli/issues/14468)): The `axe` accessibility report UI (HTML overlay, revealjs report slide, dashboard offcanvas) now uses its own theme-independent colors instead of inheriting from `brand` or theme. Keeps the report readable regardless of page styling, and stops `axe` from clobbering brand colors set via `_brand.yml`.
19
19
- ([#14602](https://github.com/quarto-dev/quarto-cli/pull/14602), [#14632](https://github.com/quarto-dev/quarto-cli/pull/14632)): Fix ORCID profile link having no accessible name for screen readers in HTML, Reveal.js, and ipynb title-block author metadata. (author: @mcanouil for #14602)
20
20
- ([#14604](https://github.com/quarto-dev/quarto-cli/issues/14604)): The `axe` accessibility report UI now shows each violation's WCAG conformance level (e.g. `WCAG 2.0 AA (1.4.3)`) or `Best Practice`, derived from the violation's axe-core tags.
21
+
- ([#14607](https://github.com/quarto-dev/quarto-cli/issues/14607)): Add `standard` and `best-practice` options to `axe`. `standard` scopes accessibility checks to a WCAG conformance level (e.g. `standard: wcag21aa`), including the rules axe-core keeps off by default for that level (such as AAA color contrast); `best-practice` controls whether axe's best-practice rules (recommendations not required by any WCAG success criterion) are checked.
21
22
- ([#14655](https://github.com/quarto-dev/quarto-cli/issues/14655)): Add accessible names to code line-number links so screen readers and accessibility audits no longer report them as empty links.
22
23
- ([#14676](https://github.com/quarto-dev/quarto-cli/pull/14676)): The `axe` accessibility report UI now lists violations most-important-first: by impact (critical first), then WCAG conformance level (A before AA, current criteria before Best Practice and obsolete ones), then rule id. `output: json` still emits axe-core's raw, unsorted result.
23
24
- ([#14677](https://github.com/quarto-dev/quarto-cli/pull/14677)): The `axe` option now uses a copy of axe-core bundled with Quarto instead of loading it from the Skypack CDN in the reader's browser. Accessibility checking now works offline, and viewing a rendered document no longer triggers a request to `cdn.skypack.dev`. The axe-core version is unchanged (4.10.3), so scan results are identical.
Copy file name to clipboardExpand all lines: src/resources/editor/tools/vs-code.mjs
+43-22Lines changed: 43 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -21838,9 +21838,9 @@ var require_yaml_intelligence_resources = __commonJS({
21838
21838
short: "Name that should be displayed for the overall site",
21839
21839
long: "Name that should be displayed for the overall site. If not explicitly\nprovided in the <code>open-graph</code> metadata, Quarto will use the\nwebsite or book <code>title</code> by default."
21840
21840
},
21841
-
"Footer left content",
21842
-
"Footer right content",
21843
-
"Footer center content",
21841
+
"Footer left content. Supports markdown formatting.",
21842
+
"Footer right content. Supports markdown formatting.",
21843
+
"Footer center content. Supports markdown formatting.",
21844
21844
"Footer border (<code>true</code>, <code>false</code>, or a border\ncolor)",
21845
21845
"Footer background color",
21846
21846
"Footer foreground color",
@@ -21885,7 +21885,7 @@ var require_yaml_intelligence_resources = __commonJS({
21885
21885
},
21886
21886
"Path to a file containing the Plausible Analytics script snippet",
21887
21887
"Provides an announcement displayed at the top of the page.",
21888
-
"The content of the announcement",
21888
+
"The content of the announcement. Supports markdown formatting.",
21889
21889
"Whether this announcement may be dismissed by the user.",
21890
21890
{
21891
21891
short: "The icon to display in the announcement",
@@ -21943,7 +21943,7 @@ var require_yaml_intelligence_resources = __commonJS({
21943
21943
"Field that contains the section of index entries",
21944
21944
"Additional parameters to pass when executing a search",
21945
21945
"Top navigation options",
21946
-
"The navbar title. Uses the project title if none is specified.",
21946
+
"The navbar title. Uses the project title if none is specified.\nSupports markdown formatting.",
21947
21947
"Specification of image that will be displayed to the left of the\ntitle.",
21948
21948
"Alternate text for the logo image.",
21949
21949
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -21959,7 +21959,7 @@ var require_yaml_intelligence_resources = __commonJS({
21959
21959
"Collapse tools into the navbar menu when the display becomes\nnarrow.",
21960
21960
"Side navigation options",
21961
21961
"The identifier for this sidebar.",
21962
-
"The sidebar title. Uses the project title if none is specified.",
21962
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
21963
21963
"Specification of image that will be displayed in the sidebar.",
21964
21964
"Alternate text for the logo image.",
21965
21965
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -21976,7 +21976,7 @@ var require_yaml_intelligence_resources = __commonJS({
21976
21976
"Markdown to place above sidebar content (text or file path)",
21977
21977
"Markdown to place below sidebar content (text or file path)",
21978
21978
"The identifier for this sidebar.",
21979
-
"The sidebar title. Uses the project title if none is specified.",
21979
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
21980
21980
"Specification of image that will be displayed in the sidebar.",
21981
21981
"Alternate text for the logo image.",
21982
21982
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -22052,7 +22052,7 @@ var require_yaml_intelligence_resources = __commonJS({
22052
22052
},
22053
22053
"Path to a file containing the Plausible Analytics script snippet",
22054
22054
"Provides an announcement displayed at the top of the page.",
22055
-
"The content of the announcement",
22055
+
"The content of the announcement. Supports markdown formatting.",
22056
22056
"Whether this announcement may be dismissed by the user.",
22057
22057
{
22058
22058
short: "The icon to display in the announcement",
@@ -22110,7 +22110,7 @@ var require_yaml_intelligence_resources = __commonJS({
22110
22110
"Field that contains the section of index entries",
22111
22111
"Additional parameters to pass when executing a search",
22112
22112
"Top navigation options",
22113
-
"The navbar title. Uses the project title if none is specified.",
22113
+
"The navbar title. Uses the project title if none is specified.\nSupports markdown formatting.",
22114
22114
"Specification of image that will be displayed to the left of the\ntitle.",
22115
22115
"Alternate text for the logo image.",
22116
22116
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -22126,7 +22126,7 @@ var require_yaml_intelligence_resources = __commonJS({
22126
22126
"Collapse tools into the navbar menu when the display becomes\nnarrow.",
22127
22127
"Side navigation options",
22128
22128
"The identifier for this sidebar.",
22129
-
"The sidebar title. Uses the project title if none is specified.",
22129
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
22130
22130
"Specification of image that will be displayed in the sidebar.",
22131
22131
"Alternate text for the logo image.",
22132
22132
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -22143,7 +22143,7 @@ var require_yaml_intelligence_resources = __commonJS({
22143
22143
"Markdown to place above sidebar content (text or file path)",
22144
22144
"Markdown to place below sidebar content (text or file path)",
22145
22145
"The identifier for this sidebar.",
22146
-
"The sidebar title. Uses the project title if none is specified.",
22146
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
22147
22147
"Specification of image that will be displayed in the sidebar.",
22148
22148
"Alternate text for the logo image.",
22149
22149
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24479,7 +24479,7 @@ var require_yaml_intelligence_resources = __commonJS({
24479
24479
},
24480
24480
"Path to a file containing the Plausible Analytics script snippet",
24481
24481
"Provides an announcement displayed at the top of the page.",
24482
-
"The content of the announcement",
24482
+
"The content of the announcement. Supports markdown formatting.",
24483
24483
"Whether this announcement may be dismissed by the user.",
24484
24484
{
24485
24485
short: "The icon to display in the announcement",
@@ -24537,7 +24537,7 @@ var require_yaml_intelligence_resources = __commonJS({
24537
24537
"Field that contains the section of index entries",
24538
24538
"Additional parameters to pass when executing a search",
24539
24539
"Top navigation options",
24540
-
"The navbar title. Uses the project title if none is specified.",
24540
+
"The navbar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24541
24541
"Specification of image that will be displayed to the left of the\ntitle.",
24542
24542
"Alternate text for the logo image.",
24543
24543
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24553,7 +24553,7 @@ var require_yaml_intelligence_resources = __commonJS({
24553
24553
"Collapse tools into the navbar menu when the display becomes\nnarrow.",
24554
24554
"Side navigation options",
24555
24555
"The identifier for this sidebar.",
24556
-
"The sidebar title. Uses the project title if none is specified.",
24556
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24557
24557
"Specification of image that will be displayed in the sidebar.",
24558
24558
"Alternate text for the logo image.",
24559
24559
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24570,7 +24570,7 @@ var require_yaml_intelligence_resources = __commonJS({
24570
24570
"Markdown to place above sidebar content (text or file path)",
24571
24571
"Markdown to place below sidebar content (text or file path)",
24572
24572
"The identifier for this sidebar.",
24573
-
"The sidebar title. Uses the project title if none is specified.",
24573
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24574
24574
"Specification of image that will be displayed in the sidebar.",
24575
24575
"Alternate text for the logo image.",
24576
24576
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24775,6 +24775,8 @@ var require_yaml_intelligence_resources = __commonJS({
24775
24775
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
24776
24776
"When defined, run axe-core accessibility tests on the document.",
24777
24777
"If set, output axe-core results on console. <code>json</code>:\nproduce structured output; <code>console</code>: print output to\njavascript console; <code>document</code>: produce a visual report of\nviolations in the document itself.",
24778
+
"Only check the rules for this WCAG conformance level, named as\nversion then level (e.g. <code>wcag21aa</code> for WCAG 2.1 AA). Each\nlevel includes the levels and versions it builds on, and may check rules\naxe-core disables by default (such as AAA color contrast). Axe\u2019s\nbest-practice rules are excluded unless <code>best-practice: true</code>\nis also set.",
24779
+
"Whether to check axe-core\u2019s best-practice rules (checks recommended\nby axe that aren\u2019t required by any WCAG success criterion). Checked by\ndefault when <code>standard</code> is unset; excluded by default when\n<code>standard</code> is set.",
24778
24780
"The logo image.",
24779
24781
{
24780
24782
short: "Advanced geometry settings for Typst margin layout.",
@@ -24850,7 +24852,7 @@ var require_yaml_intelligence_resources = __commonJS({
24850
24852
},
24851
24853
"Path to a file containing the Plausible Analytics script snippet",
24852
24854
"Provides an announcement displayed at the top of the page.",
24853
-
"The content of the announcement",
24855
+
"The content of the announcement. Supports markdown formatting.",
24854
24856
"Whether this announcement may be dismissed by the user.",
24855
24857
{
24856
24858
short: "The icon to display in the announcement",
@@ -24908,7 +24910,7 @@ var require_yaml_intelligence_resources = __commonJS({
24908
24910
"Field that contains the section of index entries",
24909
24911
"Additional parameters to pass when executing a search",
24910
24912
"Top navigation options",
24911
-
"The navbar title. Uses the project title if none is specified.",
24913
+
"The navbar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24912
24914
"Specification of image that will be displayed to the left of the\ntitle.",
24913
24915
"Alternate text for the logo image.",
24914
24916
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24924,7 +24926,7 @@ var require_yaml_intelligence_resources = __commonJS({
24924
24926
"Collapse tools into the navbar menu when the display becomes\nnarrow.",
24925
24927
"Side navigation options",
24926
24928
"The identifier for this sidebar.",
24927
-
"The sidebar title. Uses the project title if none is specified.",
24929
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24928
24930
"Specification of image that will be displayed in the sidebar.",
24929
24931
"Alternate text for the logo image.",
24930
24932
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -24941,7 +24943,7 @@ var require_yaml_intelligence_resources = __commonJS({
24941
24943
"Markdown to place above sidebar content (text or file path)",
24942
24944
"Markdown to place below sidebar content (text or file path)",
24943
24945
"The identifier for this sidebar.",
24944
-
"The sidebar title. Uses the project title if none is specified.",
24946
+
"The sidebar title. Uses the project title if none is specified.\nSupports markdown formatting.",
24945
24947
"Specification of image that will be displayed in the sidebar.",
24946
24948
"Alternate text for the logo image.",
24947
24949
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
@@ -25374,12 +25376,12 @@ var require_yaml_intelligence_resources = __commonJS({
25374
25376
mermaid: "%%"
25375
25377
},
25376
25378
"handlers/mermaid/schema.yml": {
25377
-
_internalId: 222617,
25379
+
_internalId: 223022,
25378
25380
type: "object",
25379
25381
description: "be an object",
25380
25382
properties: {
25381
25383
"mermaid-format": {
25382
-
_internalId: 222609,
25384
+
_internalId: 223014,
25383
25385
type: "enum",
25384
25386
enum: [
25385
25387
"png",
@@ -25395,7 +25397,7 @@ var require_yaml_intelligence_resources = __commonJS({
25395
25397
exhaustiveCompletions: true
25396
25398
},
25397
25399
theme: {
25398
-
_internalId: 222616,
25400
+
_internalId: 223021,
25399
25401
type: "anyOf",
25400
25402
anyOf: [
25401
25403
{
@@ -25457,6 +25459,25 @@ var require_yaml_intelligence_resources = __commonJS({
25457
25459
"document"
25458
25460
],
25459
25461
description: "If set, output axe-core results on console. `json`: produce structured output; `console`: print output to javascript console; `document`: produce a visual report of violations in the document itself."
25462
+
},
25463
+
standard: {
25464
+
enum: [
25465
+
"wcag2a",
25466
+
"wcag2aa",
25467
+
"wcag2aaa",
25468
+
"wcag21a",
25469
+
"wcag21aa",
25470
+
"wcag21aaa",
25471
+
"wcag22a",
25472
+
"wcag22aa",
25473
+
"wcag22aaa"
25474
+
],
25475
+
description: "Only check the rules for this WCAG conformance level, named as version then level (e.g. `wcag21aa` for WCAG 2.1 AA). Each level includes the levels and versions it builds on, and may check rules axe-core disables by default (such as AAA color contrast). Axe's best-practice rules are excluded unless `best-practice: true` is also set."
25476
+
},
25477
+
"best-practice": {
25478
+
boolean: {
25479
+
description: "Whether to check axe-core's best-practice rules (checks recommended by axe that aren't required by any WCAG success criterion). Checked by default when `standard` is unset; excluded by default when `standard` is set."
0 commit comments