Skip to content

Commit 9160aab

Browse files
committed
fix: series TOC now works again
1 parent f3e9d29 commit 9160aab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/views/blog-post/series/series-toc.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const showMoreText = translate(
101101
>
102102
const showMore = document.querySelector("#toggleAllButton");
103103
const showHideChapters = Array.from(
104-
document.querySelectorAll("[data-dont-show-initially]"),
104+
document.querySelectorAll("[data-dont-show-initially='true']"),
105105
);
106106

107107
let expanded = false;

src/views/blog-post/series/series-toc.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
padding: 0;
8989
}
9090

91-
.navigationItemOuter[data-dont-show-initially] {
91+
.navigationItemOuter[data-dont-show-initially="true"] {
9292
display: none;
9393
}
9494

@@ -134,7 +134,7 @@
134134
background: var(--series-nav_chapter-item_border_color_pressed);
135135
}
136136

137-
.navigationItem[data-is-active] {
137+
.navigationItem[data-is-active="true"] {
138138
color: var(--series-nav_chapter-item_title_color_selected);
139139
padding-left: calc(
140140
var(--series-nav_chapter-item_padding-horizontal) +
@@ -143,7 +143,7 @@
143143
);
144144
}
145145

146-
.navigationItem[data-is-active]::before {
146+
.navigationItem[data-is-active="true"]::before {
147147
content: " ";
148148
position: absolute;
149149
left: 0;
@@ -153,7 +153,7 @@
153153
background: var(--series-nav_chapter-item_border_color_selected);
154154
}
155155

156-
.navigationItem[data-is-active]::after {
156+
.navigationItem[data-is-active="true"]::after {
157157
content: " ";
158158
background-color: var(--series-nav_chapter-item_arrow_color);
159159
mask: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="Arrow"><path id="Vector 31" d="M5 8H15M15 8L11 4M15 8L11 12" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g></svg>');

0 commit comments

Comments
 (0)