@patternfly/documentation-framework 6.22.8 → 6.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.22.9 (2025-09-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **screenshots:** force light theme, hide theme switcher ([#4803](https://github.com/patternfly/patternfly-org/issues/4803)) ([abff5aa](https://github.com/patternfly/patternfly-org/commit/abff5aa36fb2eccb757d27885f72408463e83f49))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 6.22.8 (2025-09-16)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/documentation-framework",
3
3
  "description": "A framework to build documentation for PatternFly.",
4
- "version": "6.22.8",
4
+ "version": "6.22.9",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "@babel/preset-env": "7.27.1",
13
13
  "@babel/preset-react": "^7.24.1",
14
14
  "@mdx-js/util": "1.6.16",
15
- "@patternfly/ast-helpers": "^1.4.0-alpha.278",
15
+ "@patternfly/ast-helpers": "^1.4.0-alpha.279",
16
16
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
17
17
  "autoprefixer": "10.4.19",
18
18
  "babel-loader": "^9.1.3",
@@ -95,5 +95,5 @@
95
95
  "http-cache-semantics": ">=4.1.1",
96
96
  "nanoid": "3.3.8"
97
97
  },
98
- "gitHead": "33f34db4511db789277a0aab71904537e6aecc28"
98
+ "gitHead": "f90b231ab877e5703935880600e472c84198e2b3"
99
99
  }
@@ -10,7 +10,12 @@ sharp.cache(false);
10
10
 
11
11
  async function writeScreenshot({ page, data: { url, urlPrefix } }) {
12
12
  await page.goto(url);
13
- await page.addStyleTag({content: '*,*::before,*::after{animation-delay:-1ms !important;animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:0s !important;transition-delay:0s !important;}'}); // disable animations/transitions so they don't interfere with screenshot tool
13
+ // set light theme
14
+ await page.emulateMediaFeatures([{ name: 'prefers-color-scheme', value: 'light' }]);
15
+ // disable any transitions/animations
16
+ await page.addStyleTag({content: '*,*::before,*::after{animation-delay:-1ms !important;animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:0s !important;transition-delay:0s !important;}'});
17
+ // hide theme switcher
18
+ await page.addStyleTag({content: '.ws-full-page-utils { display: none !important; }'});
14
19
  await page.waitForSelector('.pf-v6-u-h-100');
15
20
  const outfile = path.join(
16
21
  screenshotBase,