We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:not([role='tabpanel'])
1 parent 88aa751 commit 0bf458bCopy full SHA for 0bf458b
assets/js/shortcuts.js
@@ -99,12 +99,14 @@ function setupShortcuts(shortcutDepth = 2) {
99
shortcutDepth += 1; // to account for the page title
100
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.
104
let classes = "";
105
for (let i = 2; i <= shortcutDepth; i++) {
106
if (i != 2) {
107
classes += ",";
108
}
- classes += " .content-container > h" + i;
109
+ classes += " .content-container:not([role='tabpanel']) > h" + i;
110
111
112
const classElements = Array.from(document.querySelectorAll(classes));
0 commit comments