|
1 | 1 | [ |
2 | 2 | { |
3 | | - "id": "landmark-one-main", |
| 3 | + "id": "landmark-unique", |
4 | 4 | "impact": "moderate", |
5 | 5 | "tags": [ |
6 | 6 | "cat.semantics", |
7 | 7 | "best-practice" |
8 | 8 | ], |
9 | | - "description": "Ensure the document has a main landmark", |
10 | | - "help": "Document should have one main landmark", |
11 | | - "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/landmark-one-main?application=playwright", |
| 9 | + "description": "Ensure landmarks are unique", |
| 10 | + "help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination", |
| 11 | + "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/landmark-unique?application=playwright", |
12 | 12 | "nodes": [ |
13 | 13 | { |
14 | | - "any": [], |
15 | | - "all": [ |
| 14 | + "any": [ |
16 | 15 | { |
17 | | - "id": "page-has-main", |
18 | | - "data": null, |
19 | | - "relatedNodes": [], |
| 16 | + "id": "landmark-is-unique", |
| 17 | + "data": { |
| 18 | + "role": "search", |
| 19 | + "accessibleText": "site search" |
| 20 | + }, |
| 21 | + "relatedNodes": [ |
| 22 | + { |
| 23 | + "html": "<form data-search-form=\"\" class=\"relative\" role=\"search\" aria-label=\"Site search\" data-astro-cid-yeu7u2zk=\"\" data-search-listener=\"true\">", |
| 24 | + "target": [ |
| 25 | + ".max-w-lg > form[data-search-form=\"\"][role=\"search\"][aria-label=\"Site search\"]" |
| 26 | + ] |
| 27 | + } |
| 28 | + ], |
20 | 29 | "impact": "moderate", |
21 | | - "message": "Document does not have a main landmark" |
| 30 | + "message": "The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable" |
22 | 31 | } |
23 | 32 | ], |
| 33 | + "all": [], |
24 | 34 | "none": [], |
25 | 35 | "impact": "moderate", |
26 | | - "html": "<html lang=\"en\" data-theme=\"light\">", |
| 36 | + "html": "<form data-search-form=\"\" data-state=\"closed\" class=\"flex items-center w-full h-(--header-icon-size) overflow-visible rounded-full data-[state=open]:bg-page-base data-[state=open]:shadow-elevated\" role=\"search\" aria-label=\"Site search\" data-search-listener=\"true\">", |
27 | 37 | "target": [ |
28 | | - "html" |
| 38 | + ".overflow-visible" |
29 | 39 | ], |
30 | | - "failureSummary": "Fix all of the following:\n Document does not have a main landmark" |
31 | | - } |
32 | | - ] |
33 | | - }, |
34 | | - { |
35 | | - "id": "page-has-heading-one", |
36 | | - "impact": "moderate", |
37 | | - "tags": [ |
38 | | - "cat.semantics", |
39 | | - "best-practice" |
40 | | - ], |
41 | | - "description": "Ensure that the page, or at least one of its frames contains a level-one heading", |
42 | | - "help": "Page should contain a level-one heading", |
43 | | - "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/page-has-heading-one?application=playwright", |
44 | | - "nodes": [ |
45 | | - { |
46 | | - "any": [], |
47 | | - "all": [ |
48 | | - { |
49 | | - "id": "page-has-heading-one", |
50 | | - "data": null, |
51 | | - "relatedNodes": [], |
52 | | - "impact": "moderate", |
53 | | - "message": "Page must have a level-one heading" |
54 | | - } |
55 | | - ], |
56 | | - "none": [], |
57 | | - "impact": "moderate", |
58 | | - "html": "<html lang=\"en\" data-theme=\"light\">", |
59 | | - "target": [ |
60 | | - "html" |
61 | | - ], |
62 | | - "failureSummary": "Fix all of the following:\n Page must have a level-one heading" |
| 40 | + "failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable" |
63 | 41 | } |
64 | 42 | ] |
65 | 43 | } |
|
0 commit comments