Switching implementation to better one
commit06429fcbd335266f69b8652a52258b24b72f57c3
authorMatilde Park <matilde@tlon.io>
dateFri 26 Jul 2019, 21:38 (7 years ago)
parent5abd023
sass/_main.scss−5
@@ -76,11 +76,6 @@ iframe {
7676 font-size: inherit;
7777 line-height: inherit;
7878 }
79− li a:focus {
80− outline: 0;
81− border: none;
82− -moz-outline-style: none;
83− }
8479}
8580
8681.content-nav-icon {
static/scripts.js+1−1
@@ -335,7 +335,7 @@ let docsNavScroll = function() {
335335 let docsNav = document.querySelectorAll("ul.content-nav__index a")
336336 for (let link in docsNav) {
337337 if (window.location.href.includes(docsNav[link].href)) {
338− docsNav[link].focus()
338+ docsNav[link].scrollIntoView()
339339 }
340340 }
341341}