@patternfly/documentation-framework 6.22.7 → 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,28 @@
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
+
17
+ ## 6.22.8 (2025-09-16)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **theme-selector:** prevent overflow of the menu ([#4779](https://github.com/patternfly/patternfly-org/issues/4779)) ([767811f](https://github.com/patternfly/patternfly-org/commit/767811f252a888d0795f0fd13142724e160bc0cd))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 6.22.7 (2025-09-10)
7
29
 
8
30
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -103,6 +103,11 @@ export const ThemeSelector = ({ id }) => {
103
103
  )}
104
104
  shouldFocusToggleOnSelect
105
105
  onOpenChangeKeys={['Escape']}
106
+ popperProps={{
107
+ position: 'right',
108
+ enableFlip: true,
109
+ preventOverflow: true
110
+ }}
106
111
  >
107
112
  <SelectGroup>
108
113
  <SelectList aria-label="Light/Dark theme switcher">
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.7",
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.277",
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": "22946798a156249fac50b57f7d0a7ce8208d59a4"
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,