summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules/forms')
-rw-r--r--src/components/molecules/forms/motion-toggle.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/molecules/forms/motion-toggle.tsx b/src/components/molecules/forms/motion-toggle.tsx
index e3bb11a..cbe38fe 100644
--- a/src/components/molecules/forms/motion-toggle.tsx
+++ b/src/components/molecules/forms/motion-toggle.tsx
@@ -33,7 +33,8 @@ const MotionToggle: FC<MotionToggleProps> = ({
value
);
useAttributes({
- attribute: 'reducedMotion',
+ element: document.documentElement || undefined,
+ attribute: 'reduced-motion',
value: `${isReduced}`,
});