From 366934ba8da5530690010b8a4a837348ee0415ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihkel=20Auv=C3=A4=C3=A4rt?= <11288915+MihkelAuv@users.noreply.github.com> Date: Wed, 21 Jun 2023 10:17:49 +0300 Subject: [PATCH] fix: Fix scroll into view in TOC (#8898) Add active class to list item --- templates/modern/src/toc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/modern/src/toc.ts b/templates/modern/src/toc.ts index 9cfc349e28e..b149a47ee42 100644 --- a/templates/modern/src/toc.ts +++ b/templates/modern/src/toc.ts @@ -102,7 +102,7 @@ export async function renderToc(): Promise { const isExpanded = (tocFilter !== '' && expanded !== false && children != null) || expanded === true return html` -
  • +
  • ${isLeaf ? null : html``} ${dom} ${children}