apisix-website
apisix-website copied to clipboard
fix: toggle theme switch appearing on the website pages
Fixes: #1977
Changes:
-
Removed the desktop rule that hid
.react-toggleinwebsite/src/css/customTheme.scss, so the theme switch is now visible in the navbar on all pages. -
Removed
ThemeResetComponentfromwebsite/src/pages/index.tsx, which previously forced light mode and manually hid the toggle via DOM queries. The component was forcing light theme whenever the home page was being opened.
Result: The color mode switch now appears and works consistently across the whole website, matching the behavior of the Blog and Case Studies page.
Screenshots of the change: