Skip to content

Commit

Permalink
Merge pull request #632 from City-of-Helsinki/UHF-9823_updating_news_…
Browse files Browse the repository at this point in the history
…toc_bug_fix

UHF-9823: Fix the updating news table of contents
  • Loading branch information
teroelonen authored May 30, 2024
2 parents 22df9f0 + afa2037 commit 02962b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
});
let exclusions = Drupal.tableOfContents.exclusions();

// Add exclusions for the news updates table of contents.
// Add exclusions for the news updates table of contents. NOTICE: The text paragraph is the only one that
// has paragraph as a prefix, so it might look a bit silly compared to the other selectors.
exclusions +=
':not(.components--upper *)' +
':not(.component--remote-video *)' +
':not(.component--text *)' +
':not(.component--paragraph-text *)' +
':not(.component--banner *)' +
':not(.component--image *)' +
':not(.block--news-of-interest *)' +
Expand Down

0 comments on commit 02962b1

Please sign in to comment.