summaryrefslogtreecommitdiffstats
path: root/src/components/Widgets/ToC/ToC.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-13 19:35:21 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-13 19:35:21 +0100
commit998aac559ec75379b7fd25496ae06073c7b342c5 (patch)
tree1baf975723e2880d69f9cebac405cea84674fc56 /src/components/Widgets/ToC/ToC.tsx
parentd7df049ef40d4028ac5616f8bbe366d1476404de (diff)
chore: add some noscript tags to explain why the data are not loaded
Diffstat (limited to 'src/components/Widgets/ToC/ToC.tsx')
-rw-r--r--src/components/Widgets/ToC/ToC.tsx7
1 files changed, 7 insertions, 0 deletions
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>
);