-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
The full page example dark theme toggle
- This toggle always defaults to "light", even if the page loads as dark
patternfly-org/packages/documentation-framework/components/example/example.js
Lines 205 to 216 in 99aee19
{hasDarkThemeSwitcher && ( <Switch id="ws-example-theme-switch" label="Dark theme" defaultChecked={false} onChange={() => document .querySelector('html') .classList.toggle('pf-v6-theme-dark') } /> )}
- Toggling dark theme on a full page example doesn't set/modify the local storage key that allows the user's choice to persist throughout their session
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ready to assign