Skip to content

Commit b52a21b

Browse files
alexandersandbergcthielen
authored andcommitted
fix all drop-down items highlighted as active (swiftlang#618)
1 parent 23e24e5 commit b52a21b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

_includes/navigation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ <h1 id="logo">
5151
<nav class="mobile-navigation" role="navigation">
5252
<ul class="mobile-navigation-links">
5353
{% for nav in site.data.navigation %}
54-
<li class="nav-item {% if page.url == nav.url %}active{% endif %}{% if nav.isCta %} cta{% endif %}">
55-
<div class="link-container">
54+
<li class="nav-item{% if nav.isCta %} cta{% endif %}">
55+
<div class="link-container{% if page.url == nav.url %} active{% endif %}">
5656
{% if nav.url %}
5757
<a href="{{ nav.url }}">{{ nav.header }}</a>
5858
{% else %}

assets/stylesheets/_screen.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ cite {
348348
border-top: 1px solid var(--color-nav-rule);
349349
display: block;
350350

351-
&.active {
351+
&.active,
352+
.link-container.active {
352353
a {
353354
font-weight: 700;
354355
color: #F05138; // TODO: Use variable

0 commit comments

Comments
 (0)