mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-06 14:05:22 +02:00
Update table-of-content.js
This commit is contained in:
parent
8cf75b4c20
commit
e1d80fa511
1 changed files with 3 additions and 3 deletions
|
@ -223,8 +223,8 @@ export default class TableOfContent {
|
|||
/**
|
||||
* Clear all links
|
||||
*/
|
||||
this.tocElement.querySelectorAll('.table-of-content__list-item').forEach((link) => {
|
||||
link.classList.remove('table-of-content__list-item--active');
|
||||
this.tocElement.querySelectorAll(this.CSS.tocElementItem).forEach((link) => {
|
||||
link.classList.remove(this.CSS.tocElementItemActive);
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -248,7 +248,7 @@ export default class TableOfContent {
|
|||
* If target list item is found then highlight it
|
||||
*/
|
||||
if (listItem) {
|
||||
listItem.classList.add('table-of-content__list-item--active');
|
||||
listItem.classList.add(this.CSS.tocElementItemActive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue