<p dir="auto">There's this <code class="notranslate">current_page_class()</code> function that applies <code class="notranslate">current</code> css class to header menu items pointing to the current page. <a href="https://github.com/openstreetmap/openstreetmap-website/commit/e5c33c119a9ddd4de149cd8913ed970601103a2b#diff-6d2ef58207c92d1533287af551a075122ba98240a861819047a2ae77b7674f0bR33-R34">This commit</a> broke it for primary nav buttons, but nobody noticed because the <code class="notranslate">current</code> class is not used for anything. Still the javascript applied it correctly on partial page reloads.</p>
<p dir="auto">Here I remove <code class="notranslate">current</code> from primary navigation.</p>
<p dir="auto">It's still used in secondary navigation, makes current links darker.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4389'>https://github.com/openstreetmap/openstreetmap-website/pull/4389</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389/commits/e4cce5d53940297c27772ea996fbbd82ff164136" class="commit-link">e4cce5d</a> Remove unused .current from primary nav</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389/files#diff-32bd60500bca8422d3edba93ac86b6d6a12190fdee53ce75372dc501efcba010">app/assets/javascripts/index/export.js</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389/files#diff-25cab16df4a58e0c8e53d0a0e70d9bbf28ef3beb9e6bf1208234fdeed7515392">app/assets/javascripts/index/history.js</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389/files#diff-6d2ef58207c92d1533287af551a075122ba98240a861819047a2ae77b7674f0b">app/views/layouts/_header.html.erb</a>
(6)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4389.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4389.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4389.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4389.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4389">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNI7R2KG6Q5Y7OJSQLYHUXQHAVCNFSM6AAAAABAFICVHWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDEOBYGUZDOMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJIRFI2ILUVA4MJ6WTYHUXQHA5CNFSM6AAAAABAFICVHWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHREWHTA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4389</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4389",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4389",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>