Skip to content

Commit

Permalink
fix: dark theme use v6 classname
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Apr 3, 2024
1 parent f9fc947 commit 54cdb71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const Example = ({
<Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-v6-m-dir-ltr ">
{hasDarkThemeSwitcher && (
<Switch id="ws-example-theme-switch" label="Dark theme" defaultChecked={false} onChange={() =>
document.querySelector('html').classList.toggle('pf-v5-theme-dark')} />
document.querySelector('html').classList.toggle('pf-v6-theme-dark')} />
)}
{hasRTLSwitcher && (
<Switch id="ws-example-rtl-switch" label="RTL" defaultChecked={false} onChange={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const HeaderTools = ({

const toggleDarkTheme = (_evt, selected) => {
const darkThemeToggleClicked = !selected === isDarkTheme
document.querySelector('html').classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked);
document.querySelector('html').classList.toggle('pf-v6-theme-dark', darkThemeToggleClicked);
setIsDarkTheme(darkThemeToggleClicked);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "6.0.0-alpha.18",
"@patternfly/documentation-framework": "6.0.0-alpha.19",
"@patternfly/quickstarts": "^5.1.0",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-console": "5.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2240,10 +2240,10 @@
node-addon-api "^3.2.1"
node-gyp-build "^4.3.0"

"@patternfly/[email protected].3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@patternfly/design-tokens/-/design-tokens-1.0.3.tgz#7e5062036d8e2a77bbfb76f576d12c723d4087d8"
integrity sha512-eeFbE0deR/ZCtLr52Bo+rcfZTzeDBnKvoHh34M84eSpOUyPWA5tFqXkzGIcqWrWMWr/PXvZQ7s8xZprwrsD8JA==
"@patternfly/[email protected].4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@patternfly/design-tokens/-/design-tokens-1.0.4.tgz#51142a5488bff61eecd044f7f0ca4157ef16b2c8"
integrity sha512-z6ikVWSkWGxOqdE5yTKVi4wOxdduy9wQoJU0Eri7psV532HKxd/XocURalqKgfhv55ReDHHG11+5z0ORUuLB0w==
dependencies:
"@patternfly/react-core" "^6.0.0-alpha.36"

Expand Down

0 comments on commit 54cdb71

Please sign in to comment.