Skip to content

Commit 6448b91

Browse files
Tim-Obertlinawolf
authored andcommitted
[TASK] Fix selector for toggle-section
1 parent 9c6b1ec commit 6448b91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/typo3-docs-theme/assets/js/toggle-section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ToggleSection {
1111

1212

1313
constructor() {
14-
this.sectionHeadings = document.querySelectorAll('section > h2,h3,h4,h5,h6');
14+
this.sectionHeadings = document.querySelectorAll('section > :is(h2,h3,h4,h5,h6)');
1515
this.sectionHeadings.forEach(heading => {
1616
const toggleSectionButton = this.createToggleSectionButton()
1717
const headerLink = heading.querySelector('a.headerlink');

packages/typo3-docs-theme/resources/public/js/theme.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)