Skip to content

Commit

Permalink
fix all drop-down items highlighted as active (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandersandberg authored and cthielen committed Mar 26, 2024
1 parent 23e24e5 commit b52a21b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _includes/navigation.html
Expand Up @@ -51,8 +51,8 @@ <h1 id="logo">
<nav class="mobile-navigation" role="navigation">
<ul class="mobile-navigation-links">
{% for nav in site.data.navigation %}
<li class="nav-item {% if page.url == nav.url %}active{% endif %}{% if nav.isCta %} cta{% endif %}">
<div class="link-container">
<li class="nav-item{% if nav.isCta %} cta{% endif %}">
<div class="link-container{% if page.url == nav.url %} active{% endif %}">
{% if nav.url %}
<a href="{{ nav.url }}">{{ nav.header }}</a>
{% else %}
Expand Down
3 changes: 2 additions & 1 deletion assets/stylesheets/_screen.scss
Expand Up @@ -348,7 +348,8 @@ cite {
border-top: 1px solid var(--color-nav-rule);
display: block;

&.active {
&.active,
.link-container.active {
a {
font-weight: 700;
color: #F05138; // TODO: Use variable
Expand Down

0 comments on commit b52a21b

Please sign in to comment.