-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore hide-navigation-hover-highlight
on files/notifications
#6779
Conversation
document.documentElement.addEventListener('navigation:keydown', () => { | ||
document.documentElement.classList.remove(className); | ||
html.classList.add(className); | ||
html.addEventListener('navigation:focus', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
navigation:keydown
was the same as keydown
, so the style would get lost even if just ctrl
was pressed, which was not the intention.
}, {once: true}); | ||
} | ||
|
||
void features.add(import.meta.url, { | ||
init: onetime(init), | ||
init, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turbo drops all HTML and BODY classes, so they should be re-added every time.
Test URLs
Screenshot