Skip to content

Commit aa3835f

Browse files
committed
Change case studies and tags item cards from h3 to h2 so headings follow in order
1 parent cfd2b07 commit aa3835f

5 files changed

Lines changed: 16 additions & 246 deletions

File tree

‎axe-results-incomplete.json‎

Lines changed: 1 addition & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1 @@
1-
[
2-
{
3-
"id": "identical-links-same-purpose",
4-
"impact": "minor",
5-
"tags": [
6-
"cat.semantics",
7-
"wcag2aaa",
8-
"wcag249"
9-
],
10-
"description": "Ensure that links with the same accessible name serve a similar purpose",
11-
"help": "Links with the same name must have a similar purpose",
12-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.11/identical-links-same-purpose?application=playwright",
13-
"nodes": [
14-
{
15-
"any": [],
16-
"all": [
17-
{
18-
"id": "identical-links-same-purpose",
19-
"data": {
20-
"name": "share on x",
21-
"urlProps": {
22-
"protocol": "http:",
23-
"hostname": "twitter.com",
24-
"port": "",
25-
"pathname": "/intent/tweet/",
26-
"search": {
27-
"text": "Demo Page - This is just a demo page to show how things work on the site",
28-
"url": "/articles/demo"
29-
},
30-
"hash": "",
31-
"filename": ""
32-
}
33-
},
34-
"relatedNodes": [
35-
{
36-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://twitter.com/...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on X\" data-share=\"x\">",
37-
"target": [
38-
".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row > .sm\\:pl-12.md\\:flex-1.w-full > social-share-element > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-x.hover\\:bg-x-active[data-share=\"x\"]"
39-
]
40-
}
41-
],
42-
"impact": "minor",
43-
"message": "Check that links have the same purpose, or are intentionally ambiguous."
44-
}
45-
],
46-
"none": [],
47-
"impact": "minor",
48-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://twitter.com/...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on X\" data-share=\"x\">",
49-
"target": [
50-
"social-share-element[url=\"/articles/demo\"] > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-x.hover\\:bg-x-active[data-share=\"x\"]"
51-
],
52-
"failureSummary": "Fix all of the following:\n Check that links have the same purpose, or are intentionally ambiguous."
53-
},
54-
{
55-
"any": [],
56-
"all": [
57-
{
58-
"id": "identical-links-same-purpose",
59-
"data": {
60-
"name": "share on linkedin",
61-
"urlProps": {
62-
"protocol": "http:",
63-
"hostname": "www.linkedin.com",
64-
"port": "",
65-
"pathname": "/sharing/share-offsite/",
66-
"search": {
67-
"url": "/articles/demo"
68-
},
69-
"hash": "",
70-
"filename": ""
71-
}
72-
},
73-
"relatedNodes": [
74-
{
75-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://www.linkedin...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on LinkedIn\" data-share=\"linkedin\">",
76-
"target": [
77-
".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row > .sm\\:pl-12.md\\:flex-1.w-full > social-share-element > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-linkedin.hover\\:bg-linkedin-active[data-share=\"linkedin\"]"
78-
]
79-
}
80-
],
81-
"impact": "minor",
82-
"message": "Check that links have the same purpose, or are intentionally ambiguous."
83-
}
84-
],
85-
"none": [],
86-
"impact": "minor",
87-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://www.linkedin...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on LinkedIn\" data-share=\"linkedin\">",
88-
"target": [
89-
"social-share-element[url=\"/articles/demo\"] > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-linkedin.hover\\:bg-linkedin-active[data-share=\"linkedin\"]"
90-
],
91-
"failureSummary": "Fix all of the following:\n Check that links have the same purpose, or are intentionally ambiguous."
92-
},
93-
{
94-
"any": [],
95-
"all": [
96-
{
97-
"id": "identical-links-same-purpose",
98-
"data": {
99-
"name": "share on bluesky",
100-
"urlProps": {
101-
"protocol": "http:",
102-
"hostname": "bsky.app",
103-
"port": "",
104-
"pathname": "/intent/compose/",
105-
"search": {
106-
"text": "Demo Page - This is just a demo page to show how things work on the site /articles/demo"
107-
},
108-
"hash": "",
109-
"filename": ""
110-
}
111-
},
112-
"relatedNodes": [
113-
{
114-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://bsky.app/int...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Bluesky\" data-share=\"bluesky\">",
115-
"target": [
116-
".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row > .sm\\:pl-12.md\\:flex-1.w-full > social-share-element > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-bluesky.hover\\:bg-bluesky-active[data-share=\"bluesky\"]"
117-
]
118-
}
119-
],
120-
"impact": "minor",
121-
"message": "Check that links have the same purpose, or are intentionally ambiguous."
122-
}
123-
],
124-
"none": [],
125-
"impact": "minor",
126-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://bsky.app/int...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Bluesky\" data-share=\"bluesky\">",
127-
"target": [
128-
"social-share-element[url=\"/articles/demo\"] > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-bluesky.hover\\:bg-bluesky-active[data-share=\"bluesky\"]"
129-
],
130-
"failureSummary": "Fix all of the following:\n Check that links have the same purpose, or are intentionally ambiguous."
131-
},
132-
{
133-
"any": [],
134-
"all": [
135-
{
136-
"id": "identical-links-same-purpose",
137-
"data": {
138-
"name": "share on reddit",
139-
"urlProps": {
140-
"protocol": "http:",
141-
"hostname": "reddit.com",
142-
"port": "",
143-
"pathname": "/submit/",
144-
"search": {
145-
"url": "/articles/demo",
146-
"title": "Demo Page"
147-
},
148-
"hash": "",
149-
"filename": ""
150-
}
151-
},
152-
"relatedNodes": [
153-
{
154-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://reddit.com/s...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Reddit\" data-share=\"reddit\">",
155-
"target": [
156-
".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row > .sm\\:pl-12.md\\:flex-1.w-full > social-share-element > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-reddit.hover\\:bg-reddit-active[data-share=\"reddit\"]"
157-
]
158-
}
159-
],
160-
"impact": "minor",
161-
"message": "Check that links have the same purpose, or are intentionally ambiguous."
162-
}
163-
],
164-
"none": [],
165-
"impact": "minor",
166-
"html": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://reddit.com/s...\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Reddit\" data-share=\"reddit\">",
167-
"target": [
168-
"social-share-element[url=\"/articles/demo\"] > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-reddit.hover\\:bg-reddit-active[data-share=\"reddit\"]"
169-
],
170-
"failureSummary": "Fix all of the following:\n Check that links have the same purpose, or are intentionally ambiguous."
171-
}
172-
]
173-
}
174-
]
1+
[]

‎axe-results-violations.json‎

Lines changed: 11 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,33 @@
11
[
22
{
3-
"id": "landmark-unique",
3+
"id": "heading-order",
44
"impact": "moderate",
55
"tags": [
66
"cat.semantics",
77
"best-practice"
88
],
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",
9+
"description": "Ensure the order of headings is semantically correct",
10+
"help": "Heading levels should only increase by one",
11+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.11/heading-order?application=playwright",
1212
"nodes": [
1313
{
1414
"any": [
1515
{
16-
"id": "landmark-is-unique",
17-
"data": {
18-
"role": "region",
19-
"accessibleText": "with title link"
20-
},
21-
"relatedNodes": [
22-
{
23-
"html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-demo/index-title\" data-astro-cid-kfjqoxel=\"\">",
24-
"target": [
25-
"carousel-slider[data-carousel-navigation-mode=\"bounded\"] > .py-8.max-w-6xl.lg\\:px-8 > .embla[role=\"region\"][data-astro-cid-kfjqoxel=\"\"]"
26-
]
27-
}
28-
],
16+
"id": "heading-order",
17+
"data": null,
18+
"relatedNodes": [],
2919
"impact": "moderate",
30-
"message": "The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable"
20+
"message": "Heading order invalid"
3121
}
3222
],
3323
"all": [],
3424
"none": [],
3525
"impact": "moderate",
36-
"html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-demo/index-title\" data-astro-cid-kfjqoxel=\"\">",
26+
"html": "<h3 class=\"text-xl font-semibold mb-3 group-hover:text-primary transition-colors\" data-astro-cid-72nlo57a=\"\"> Self-Service Infrastructure for Product Teams </h3>",
3727
"target": [
38-
"carousel-slider[data-carousel-navigation-mode=\"wrap\"] > .py-8.max-w-6xl.lg\\:px-8 > .embla[role=\"region\"][data-astro-cid-kfjqoxel=\"\"]"
28+
"article:nth-child(1) > .rounded-xl.hover\\:-translate-y-2.focus-visible\\:shadow-none > .p-6.min-h-0.flex-1 > div:nth-child(1) > h3"
3929
],
40-
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable"
41-
},
42-
{
43-
"any": [
44-
{
45-
"id": "landmark-is-unique",
46-
"data": {
47-
"role": "region",
48-
"accessibleText": "share this article"
49-
},
50-
"relatedNodes": [
51-
{
52-
"html": "<section class=\"rounded-lg bg-page-offset flex flex-col md:flex-row items-start md:items-center p-6 mx-6\" aria-labelledby=\"social-share-icon-bank-6dq3mht114y-heading\">",
53-
"target": [
54-
".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row"
55-
]
56-
}
57-
],
58-
"impact": "moderate",
59-
"message": "The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable"
60-
}
61-
],
62-
"all": [],
63-
"none": [],
64-
"impact": "moderate",
65-
"html": "<section class=\"rounded-lg bg-page-offset flex flex-col md:flex-row items-start md:items-center p-6 mx-6\" aria-labelledby=\"social-share-icon-bank-bqai9oray59-heading\">",
66-
"target": [
67-
".markdown-content__prose > .mx-6.md\\:items-center.md\\:flex-row"
68-
],
69-
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable"
30+
"failureSummary": "Fix any of the following:\n Heading order invalid"
7031
}
7132
]
7233
}

‎src/content/articles/demo/index.mdx‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,24 +2226,6 @@ graph TD
22262226
url="https://codepen.io/webstackdev/pen/JaEgxM"
22272227
/>
22282228

2229-
## Social Shares
2230-
2231-
Add social sharing buttons for the article. The social image is auto-generated, and can be passed as an optional param to override the generated version.
2232-
2233-
```markdown
2234-
<Shares
2235-
title="Demo Page"
2236-
description="This is just a demo page to show how things work on the site"
2237-
url="/articles/demo"
2238-
/>
2239-
```
2240-
2241-
<Shares
2242-
title="Demo Page"
2243-
description="This is just a demo page to show how things work on the site"
2244-
url="/articles/demo"
2245-
/>
2246-
22472229
## Tables (Markdown)
22482230

22492231
```markdown

‎src/pages/case-studies/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const path = '/case-studies'
6565

6666
<div class="flex flex-1 min-h-0 flex-col justify-between p-6">
6767
<div>
68-
<h3 class="text-xl font-semibold mb-3 group-hover:text-primary transition-colors">
68+
<h2 class="text-xl font-semibold mb-3 group-hover:text-primary transition-colors">
6969
{caseStudy.data.title}
70-
</h3>
70+
</h2>
7171

7272
{caseStudy.data.description && (
7373
<p class="text-content-offset leading-relaxed text-sm">

‎src/pages/tags/[tag].astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ const paginatedContent = sortedContent.slice(startIndex, endIndex)
172172
</time>
173173
</div>
174174

175-
<h3 class="text-xl font-semibold mb-3 group-hover:text-primary transition-colors">
175+
<h2 class="text-xl font-semibold mb-3 group-hover:text-primary transition-colors">
176176
{item.data.title}
177-
</h3>
177+
</h2>
178178

179179
{item.data.description && (
180180
<p class="text-content-offset leading-relaxed text-sm">

0 commit comments

Comments
 (0)