Skip to content

Commit 7e43e01

Browse files
authored
Improve accessibility: wrap logo in div not H1 (#2844)
1 parent 7cfd705 commit 7e43e01

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

static/sass/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,6 @@ h2.not-column {
10781078
text-align: center;
10791079
padding: .75em 1em; }
10801080

1081-
/*h1*/
10821081
.site-headline {
10831082
color: white;
10841083
margin: 0.15em auto 0.2em; }

static/sass/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ h2.not-column {
411411
}
412412
}
413413

414-
/*h1*/ .site-headline {
414+
.site-headline {
415415
color: $white;
416416
margin: 0.15em auto 0.2em;
417417

templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@
185185
<header class="main-header" role="banner">
186186
<div class="container">
187187

188-
<h1 class="site-headline">
188+
<div class="site-headline">
189189
{% block section-logo %}<a href="/"><img class="python-logo" src="{{ STATIC_URL }}img/python-logo.png" alt="python&trade;"></a>{% endblock %}
190-
</h1>
190+
</div>
191191

192192
<div class="options-bar-container do-not-print">
193193
<a href="https://donate.python.org/" class="donate-button">Donate</a>

0 commit comments

Comments
 (0)