Skip to content

Commit

Permalink
Changes header navigation to a <nav> element, style by ID
Browse files Browse the repository at this point in the history
  • Loading branch information
devanubis committed Jun 1, 2023
1 parent 1b2823b commit ee8a5cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion djangoproject/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ blockquote {
}
}

[role="navigation"] {
#header-navigation {
background: $green-dark;

width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions djangoproject/templates/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="mobile-toggle">
{% include "includes/toggle_theme.html" %}
</div>
<div role="navigation">
<nav id="top-navigation">
<ul>
<li{% if 'start' in request.path %} class="active"{% endif %}>
<a href="{% url 'overview' %}">Overview</a>
Expand Down Expand Up @@ -38,6 +38,6 @@
{% include "includes/toggle_theme.html" %}
</li>
</ul>
</div>
</nav>
</div>
</div>

0 comments on commit ee8a5cc

Please sign in to comment.