Skip to content

Commit

Permalink
Ignore tab contents in shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Nov 6, 2023
1 parent 1d6d849 commit 84feef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ function remToPx(rem) {
function setupShortcuts(shortcutDepth = 2) {
shortcutDepth += 1; // to account for the page title

// Build a string like ".content-container h2, .content-container h3"
// Build a class selector for each header type, and concatenate with commas
let classes = "";
for (let i = 2; i <= shortcutDepth; i++) {
if (i != 2) {
classes += ",";
}
classes += " .content-container h" + i;
classes += " .content-container :not([role='tabpanel']) > h" + i;
}

// Content Page Shortcuts
Expand Down

0 comments on commit 84feef3

Please sign in to comment.