Skip to content

Commit 343cb67

Browse files
committed
Remove tabpanel again
1 parent 0bf458b commit 343cb67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

assets/js/shortcuts.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,13 @@ function setupShortcuts(shortcutDepth = 2) {
9898

9999
shortcutDepth += 1; // to account for the page title
100100

101-
// Build a class selector for each header type, and concatenate with commas
102-
// Note the intentional lack of a space between .content-container and
103-
// :not([role='tabpanel']) here.
101+
// Build a class selector for each header level
104102
let classes = "";
105103
for (let i = 2; i <= shortcutDepth; i++) {
106104
if (i != 2) {
107105
classes += ",";
108106
}
109-
classes += " .content-container:not([role='tabpanel']) > h" + i;
107+
classes += `.content-container > h${i}`;
110108
}
111109

112110
const classElements = Array.from(document.querySelectorAll(classes));

0 commit comments

Comments
 (0)