From 998aac559ec75379b7fd25496ae06073c7b342c5 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sun, 13 Feb 2022 19:35:21 +0100
Subject: chore: add some noscript tags to explain why the data are not loaded

---
 src/components/Widgets/ToC/ToC.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/components/Widgets/ToC/ToC.tsx')

diff --git a/src/components/Widgets/ToC/ToC.tsx b/src/components/Widgets/ToC/ToC.tsx
index f3f783c..89ca8d4 100644
--- a/src/components/Widgets/ToC/ToC.tsx
+++ b/src/components/Widgets/ToC/ToC.tsx
@@ -37,6 +37,13 @@ const ToC = () => {
 
   return (
     <ExpandableWidget title={title} kind="toc" expand={true} withBorders={true}>
+      <noscript>
+        {intl.formatMessage({
+          defaultMessage:
+            'Javascript is required to use the table of contents.',
+          description: 'ToC: noscript tag',
+        })}
+      </noscript>
       <OrderedList items={getItems(headingsTree)} />
     </ExpandableWidget>
   );
-- 
cgit v1.2.3

