Skip to content

Commit 65725c7

Browse files
Merge pull request #2072 from cncf/scanner/fix-a11y-heading-order
fix(a11y): repair skipped heading levels and retire the heading-order baseline
2 parents 15a3141 + ea1ee7f commit 65725c7

33 files changed

Lines changed: 382 additions & 81 deletions

‎docs/community/index.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ import GroupLinkStatus from '@site/src/components/GroupLinkStatus';
1616

1717
<div className="pillars pillars-duo">
1818
<div className="pillar">
19-
<h3><Link to="/community/get-involved">Get Involved</Link></h3>
19+
<h2><Link to="/community/get-involved">Get Involved</Link></h2>
2020
<p>How to request access to End User-only spaces, bring your organization in, share a reference architecture, grow from listener to leader on the contribution ladder, and reach the CNCF staff who support end users.</p>
2121
</div>
2222
<div className="pillar">
23-
<h3><Link to="/community/technical-advisory-board">Technical Advisory Board</Link></h3>
23+
<h2><Link to="/community/technical-advisory-board">Technical Advisory Board</Link></h2>
2424
<p>The body that represents end users within CNCF, surfaces end user needs, reviews reference architectures, and oversees the User Groups. Includes the User Group Governance document that defines how groups are formed, run, and held accountable.</p>
2525
</div>
2626
<div className="pillar">
27-
<h3><Link to="/community/user-groups">User Groups</Link></h3>
27+
<h2><Link to="/community/user-groups">User Groups</Link></h2>
2828
<p>Long-lived peer groups aligned to an industry vertical or problem domain, such as Public Sector, Telecom, and Platform Engineering, where end users share use cases, patterns, and practical guidance.</p>
2929
</div>
3030
<div className="pillar">
31-
<h3><Link to="/community/awards">Awards</Link></h3>
31+
<h2><Link to="/community/awards">Awards</Link></h2>
3232
<p>The organizations CNCF has recognized with the Top End User Award for excellence in running cloud native technologies in production, with links to each announcement.</p>
3333
</div>
3434
<div className="pillar">
35-
<h3><Link to="/community/members">End User Directory</Link></h3>
35+
<h2><Link to="/community/members">End User Directory</Link></h2>
3636
<p>A filterable directory of CNCF End User Members and Contributors, plus organizations represented by public reference architectures or awards, with links to each public profile and its sources.</p>
3737
</div>
3838
<div className="pillar">
39-
<h3><Link to="/community/projects-born">Projects from End Users</Link></h3>
39+
<h2><Link to="/community/projects-born">Projects from End Users</Link></h2>
4040
<p>Open source projects that started inside end user organizations and grew into CNCF projects, with the organization each one came from.</p>
4141
</div>
4242
</div>

‎docs/practitioners/index.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ architects, and organizations running cloud native technologies in production.
2323

2424
<div className="pillars">
2525
<div className="pillar">
26-
<h3>Work with proven leaders</h3>
26+
<h2>Work with proven leaders</h2>
2727
<p>Maximize what open source can do for your business, alongside the organizations already doing it at scale.</p>
2828
</div>
2929
<div className="pillar">
30-
<h3>Stay ahead of change</h3>
30+
<h2>Stay ahead of change</h2>
3131
<p>CNCF projects move at <a href="https://insights.linuxfoundation.org/collection/details/cncf">high velocity</a> — end users keep their organizations in the know on modern infrastructure.</p>
3232
</div>
3333
<div className="pillar">
34-
<h3>Sustain open source</h3>
34+
<h2>Sustain open source</h2>
3535
<p>Pool resources with your peers to support the sustainable development of the projects you depend on.</p>
3636
</div>
3737
<div className="pillar">
38-
<h3>Elevate your platform teams</h3>
38+
<h2>Elevate your platform teams</h2>
3939
<p>A supportive, knowledge-focused community where teamwork and empathy help your teams succeed.</p>
4040
</div>
4141
</div>

‎package-lock.json‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"dependencies": {
9696
"@docusaurus/core": "3.10.2",
9797
"@docusaurus/preset-classic": "3.10.2",
98+
"@docusaurus/theme-common": "3.10.2",
9899
"@docusaurus/utils": "3.10.2",
99100
"@mdx-js/react": "^3.1.1",
100101
"copy-webpack-plugin": "^11.0.0",

‎src/components/AwardsTimeline/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function WinnerCard({ entry }) {
3939
</a>
4040
<div className={styles.cardBody}>
4141
<p className={styles.awardLabel}>{awardLabel}</p>
42-
<h3 className={styles.orgName}>{organization}</h3>
42+
<h2 className={styles.orgName}>{organization}</h2>
4343
<p className={styles.citation}>{citation}</p>
4444
<p className={styles.event}>{event}</p>
4545
<div className={styles.links}>

‎src/components/CommunityPeople/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function PersonCard({ person }) {
102102
<span className={styles.viewLabel}>View profile</span>
103103
</button>
104104
<div className={styles.personInfo}>
105-
<h4>{name}</h4>
105+
<h3>{name}</h3>
106106
<p>{role || company}</p>
107107
{role && <span>{company}</span>}
108108
</div>

‎src/components/CommunityPeople/styles.module.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
.personInfo {
6464
padding: 0.9rem 1rem 1rem;
6565
}
66-
.personInfo h4 {
66+
.personInfo h3 {
6767
font-size: 1rem;
6868
margin: 0;
6969
}

‎src/components/MemberDirectory/MemberCard.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function MemberCard({ member }) {
2222
lazy
2323
/>
2424
<div className={styles.cardContent}>
25-
<h3 className={styles.orgName}>{member.name}</h3>
25+
<h2 className={styles.orgName}>{member.name}</h2>
2626
{member.membershipStatus && (
2727
<p className={styles.roleLabel}>
2828
{membershipLabel(member.membershipStatus)}

‎src/components/RadarReports/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export default function RadarReports() {
1616
<ul className={styles.list}>
1717
{radarReports.map((report) => (
1818
<li key={report.id} className={styles.item}>
19-
<h3 className={styles.title}>
19+
<h2 className={styles.title}>
2020
<a href={report.url} target="_blank" rel="noreferrer">
2121
{report.title}
2222
</a>
23-
</h3>
23+
</h2>
2424
{report.publishedAt && (
2525
<p className={styles.date}>{formatDate(report.publishedAt)}</p>
2626
)}

‎src/components/RadarReports/styles.module.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
}
2424

2525
.title {
26+
/* Same size the h3 rendered at before the outline fix: the heading moved
27+
up a level because the list sits directly under the page h1. */
28+
font-size: 1.5rem;
2629
margin: 0 0 0.25rem;
2730
}
2831

0 commit comments

Comments
 (0)