Skip to content

Commit

Permalink
Merge pull request #865 from City-of-Helsinki/UHF-11032
Browse files Browse the repository at this point in the history
UHF-11032: Changed exclusion logic for table of contents
  • Loading branch information
annadruid authored Dec 11, 2024
2 parents ba094b3 + ce4a1cf commit 79ab4ac
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/helfi_toc/assets/js/tableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@
// e.g. TOC, sidebar, cookie compliance banner etc.
exclusions: () => {
return '' +
':not(.layout-sidebar-first *)' +
':not(.layout-sidebar-second *)' +
':not(.tools__container *)' +
':not(.breadcrumb__container *)' +
':not(#helfi-toc-table-of-contents *)' +
':not(.embedded-content-cookie-compliance *)' +
':not(.react-and-share-cookie-compliance *)' +
':not(.survey__container *)'
':not(.hide-from-table-of-contents *)'
},

// List of heading tags with exclusions.
Expand Down

0 comments on commit 79ab4ac

Please sign in to comment.