Skip to content

Commit d4d7017

Browse files
committed
Make heading are semantic while maintaining font-size
Headings should only ever increment by one https://dequeuniversity.com/rules/axe/4.1/heading-order
1 parent 8a7bfac commit d4d7017

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

includes/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h1 class="border-bottom-0">{{ page.title }}</h1>
4848
<div class="article-grid-toc border-bottom border-xl-0 pb-4 mb-5 pb-xl-0 mb-xl-0">
4949
<div class="article-grid-toc-content">
5050
{% if miniTocItems.size > 1 %}
51-
<h3 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-this-article">{% data ui.pages.miniToc %}</a></h3>
51+
<h2 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-this-article">{% data ui.pages.miniToc %}</a></h2>
5252
<ul class="list-style-none pl-0 f5 mb-0">
5353
{% for item in miniTocItems %}
5454
<li class="ml-{{ item.indentationLevel | times: 3 }} {{ item.platform }} mb-2 lh-condensed">{{ item.contents }}</li>

includes/contribution.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% unless enterpriseServerReleases.isOldestReleaseDeprecated and currentVersion contains enterpriseServerReleases.oldestSupported %}
22
<div class="mt-3 f5 contribution">
3-
<h4>{% data ui.contribution_cta.title %}</h4>
3+
<h2 class="f5">{% data ui.contribution_cta.title %}</h2>
44
<p class="text-gray f6">{% data ui.contribution_cta.body %}</p>
55
<a class="btn btn-outline" href={{ "https://github.com/github/docs/edit/main/content/" | append: page.relativePath }}>
66
{% octicon "git-pull-request" height="16" %}
77
{% data ui.contribution_cta.button %}
88
</a>
99
<p class="text-gray f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a></p>
1010
</div>
11-
{% endunless %}
11+
{% endunless %}

includes/helpfulness.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% unless enterpriseServerReleases.isOldestReleaseDeprecated and currentVersion contains enterpriseServerReleases.oldestSupported %}
22
<form class="js-helpfulness mt-4 f5">
3-
<h4
3+
<h2
44
data-help-start
55
data-help-yes
66
data-help-no
7-
class="mb-1"
7+
class="mb-1 f5"
88
>
99
{% data ui.helpfulness.able_to_find %}
10-
</h4>
10+
</h2>
1111
<p class="f6">
1212
<a href="/github/site-policy/github-privacy-statement">Privacy policy</a>
1313
</p>

includes/landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 class="h1-mktg mb-3">{% data ui.search.need_help %}</h1>
1717
<!-- Explore by product -->
1818
<section class="container-xl pb-lg-4 my-8 px-3 px-md-6">
1919
<div class="">
20-
<h3 class="text-mono f5 text-normal text-gray text-md-center mb-4">{% data ui.homepage.explore_by_product %}</h3>
20+
<h2 class="text-mono f5 text-normal text-gray text-md-center mb-4">{% data ui.homepage.explore_by_product %}</h2>
2121
<div class="d-flex flex-wrap gutter gutter-xl-spacious">
2222
{% for product in activeProducts %}
2323
{% if product.versions contains currentVersion or currentVersion == 'homepage' %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<a class="link-with-intro Bump-link--hover no-underline" href="{{ fullPath }}">
2-
<h4 class="link-with-intro-title">{{ title }}<span class="Bump-link-symbol"></span></h4>
2+
<h2 class="link-with-intro-title f4">{{ title }}<span class="Bump-link-symbol"></span></h2>
33
</a>
44
{% if intro %}<p class="link-with-intro-intro">{{ intro }}</p>{% endif %}

includes/support.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!-- Contact support banner -->
22
<section class="mt-lg-9 py-7 no-print js-support-banner" style="background-color: #fafbfc;">
33
<div class="container-xl px-3 px-md-6 ">
4-
<h4 class="mb-2">
4+
<h3 class="mb-2 f4">
55
{% data ui.support.still_need_help %}
6-
</h4>
6+
</h3>
77
{% if currentVersion contains 'enterprise' %}{% assign isEnterprise = true %}{% else %}{% assign isEnterprise = false %}{% endif %}
88
<a id="ask-community" href="https://github.community" class="btn btn-outline mr-4 mt-2">
99
{% octicon "people" width="16" %}

layouts/enterprise-server-releases.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<main class="container-xl px-3 px-md-6 my-4 my-lg-4 d-xl-flex">
1010
<article class="markdown-body width-full">
1111
<div class="d-lg-flex flex-justify-between"></div>
12-
12+
1313
<div class="mt-2 article-grid-container">
14-
14+
1515
<div class="article-grid-head">
1616
<div class="d-flex flex-items-baseline flex-justify-between mt-3">
1717
<h1 class="border-bottom-0">{% data ui.enterprise_releases_list.title %}</h1>
@@ -20,7 +20,7 @@ <h1 class="border-bottom-0">{% data ui.enterprise_releases_list.title %}</h1>
2020
<div class="article-grid-toc border-bottom border-xl-0 pb-4 mb-5 pb-xl-0 mb-xl-0">
2121
<div class="article-grid-toc-content">
2222
{% if miniTocItems.size > 1 %}
23-
<h3 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-this-article">{% data ui.pages.miniToc %}</a></h3>
23+
<h2 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-this-article">{% data ui.pages.miniToc %}</a></h2>
2424
<ul class="list-style-none pl-0 f5 mb-0">
2525
{% for item in miniTocItems %}
2626
<li class="ml-{{ item.indentationLevel | times: 3 }} mb-2 lh-condensed">{{ item.contents }}</li>
@@ -58,7 +58,7 @@ <h2 id="deprecated-on-developer.github.com"><a href="#deprecated-on-developer.gi
5858
</div>
5959
</article>
6060
</main>
61-
61+
6262
</main>
6363
</body>
6464
</html>

layouts/product-landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3 class="f4 text-normal text-mono text-uppercase color-gray-5">{% data ui.toc.
8080
{% for link in featuredLinks.popular %}
8181
<li class="border-top">
8282
<a class="link-with-intro Bump-link--hover no-underline d-block py-3" href="{{ link.href }}">
83-
<h4 class="link-with-intro-title">{{ link.title }}<span class="Bump-link-symbol"></span></h4>
83+
<h2 class="link-with-intro-title f5">{{ link.title }}<span class="Bump-link-symbol"></span></h2>
8484
</a>
8585
</li>
8686
{% endfor %}

0 commit comments

Comments
 (0)