Skip to content

Commit

Permalink
Use more precise selector for .panel-pills activation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jan 29, 2024
1 parent f24b2db commit f67c260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include-in-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
})
}

function addPanelUnderlineNav() {
document.querySelectorAll(".panel-pills .nav").forEach((x) => {
function addPanelPillsNav() {
document.querySelectorAll(".panel-pills > .nav").forEach((x) => {
x.classList.remove("nav-tabs");
x.classList.add("nav-pills");
x.classList.add("justify-content-center");
Expand All @@ -113,7 +113,7 @@
function onLoad() {
addShinyliveEditLinks();
addWhatsShinyExpressTooltip();
addPanelUnderlineNav();
addPanelPillsNav();
}

document.readyState === "loading"
Expand Down

0 comments on commit f67c260

Please sign in to comment.