diff --git a/packages/react-common-docs/src/components/ThemeToggle/ThemeToggle.tsx b/packages/react-common-docs/src/components/ThemeToggle/ThemeToggle.tsx index f481162..cc36cf1 100644 --- a/packages/react-common-docs/src/components/ThemeToggle/ThemeToggle.tsx +++ b/packages/react-common-docs/src/components/ThemeToggle/ThemeToggle.tsx @@ -26,8 +26,10 @@ const applyStyles = (theme) => { stylesheets.forEach(s => { const enabled = s.title === theme if (enabled) { + s.setAttribute('rel', 'stylesheet') s.removeAttribute('disabled') } else { + s.setAttribute('rel', 'alternate') s.setAttribute('disabled', 'disabled') } })