Skip to content

Commit 54cdb71

Browse files
committed
fix: dark theme use v6 classname
1 parent f9fc947 commit 54cdb71

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/documentation-framework/components/example/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export const Example = ({
170170
<Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-v6-m-dir-ltr ">
171171
{hasDarkThemeSwitcher && (
172172
<Switch id="ws-example-theme-switch" label="Dark theme" defaultChecked={false} onChange={() =>
173-
document.querySelector('html').classList.toggle('pf-v5-theme-dark')} />
173+
document.querySelector('html').classList.toggle('pf-v6-theme-dark')} />
174174
)}
175175
{hasRTLSwitcher && (
176176
<Switch id="ws-example-rtl-switch" label="RTL" defaultChecked={false} onChange={() => {

packages/documentation-framework/layouts/sideNavLayout/sideNavLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const HeaderTools = ({
7373

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

packages/documentation-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"screenshots": "pf-docs-framework screenshots"
1818
},
1919
"dependencies": {
20-
"@patternfly/documentation-framework": "6.0.0-alpha.18",
20+
"@patternfly/documentation-framework": "6.0.0-alpha.19",
2121
"@patternfly/quickstarts": "^5.1.0",
2222
"@patternfly/react-catalog-view-extension": "5.0.0",
2323
"@patternfly/react-console": "5.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,10 +2240,10 @@
22402240
node-addon-api "^3.2.1"
22412241
node-gyp-build "^4.3.0"
22422242

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

0 commit comments

Comments
 (0)