Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-9823: Fix the updating news table of contents #632

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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