Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I was meant to merge this before the auto-syncing stops but was late
a little bit. It's a frontend change for RDoc so ideally we'd want to
test it on docs.ruby-lang.org for a few days before the 3.4 release.
  • Loading branch information
st0012 committed Dec 18, 2024
1 parent 98bf912 commit a698882
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/rdoc/generator/template/darkfish/js/darkfish.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ function hookSidebar() {
if (isSmallViewport) {
navigation.hidden = true;
navigationToggle.ariaExpanded = false;
document.addEventListener('click', (e) => {
if (e.target.closest('#navigation a')) {
navigation.hidden = true;
navigationToggle.ariaExpanded = false;
}
});
}
}

Expand Down

0 comments on commit a698882

Please sign in to comment.