@patternfly/documentation-framework 6.38.7 → 6.39.0

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.39.0 (2026-05-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ThemeSwitcher:** replaced unified/redhat with felt ([#5003](https://github.com/patternfly/patternfly-org/issues/5003)) ([6e4c13e](https://github.com/patternfly/patternfly-org/commit/6e4c13e4338d808fa1b2eac86239e753538fe364))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 6.38.7 (2026-05-01)
7
18
 
8
19
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -150,9 +150,9 @@ export const ThemeSelector = ({ id }) => {
150
150
  onChange={handleThemeVariantChange}
151
151
  />
152
152
  <ToggleGroupItem
153
- text="Unified"
154
- buttonId={themeVariantModes.UNIFIED}
155
- isSelected={themeVariant === themeVariantModes.UNIFIED}
153
+ text="Project Felt"
154
+ buttonId={themeVariantModes.FELT}
155
+ isSelected={themeVariant === themeVariantModes.FELT}
156
156
  onChange={handleThemeVariantChange}
157
157
  />
158
158
  </ToggleGroup>
package/hooks/useTheme.js CHANGED
@@ -15,7 +15,7 @@ const CONTRAST_MODES = {
15
15
 
16
16
  const THEME_VARIANT_MODES = {
17
17
  DEFAULT: 'theme-default',
18
- UNIFIED: 'theme-redhat'
18
+ FELT: 'theme-felt'
19
19
  };
20
20
 
21
21
  export const THEME_TYPES = {
@@ -46,7 +46,13 @@ class ThemeManager {
46
46
  if (!this.isBrowser) {
47
47
  return;
48
48
  }
49
- const storedValue = localStorage.getItem(this.storageKey);
49
+
50
+ let storedValue = localStorage.getItem(this.storageKey);
51
+ if (storedValue === 'theme-redhat') {
52
+ storedValue = 'theme-felt';
53
+ localStorage.setItem(this.storageKey, storedValue);
54
+ }
55
+
50
56
  return storedValue || this.defaultMode;
51
57
  }
52
58
 
@@ -190,8 +196,8 @@ const themeVariantManager = new ThemeManager({
190
196
  storageKey: 'theme-variant-preference',
191
197
  modes: THEME_VARIANT_MODES,
192
198
  defaultMode: THEME_VARIANT_MODES.DEFAULT,
193
- cssClass: 'pf-v6-theme-redhat',
194
- classEnabledMode: THEME_VARIANT_MODES.UNIFIED,
199
+ cssClass: 'pf-v6-theme-felt',
200
+ classEnabledMode: THEME_VARIANT_MODES.FELT,
195
201
  mediaQueryString: '(prefers-color-scheme: dark)' // Not used for variant, but required
196
202
  });
197
203
 
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.38.7",
4
+ "version": "6.39.0",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -92,5 +92,5 @@
92
92
  "http-cache-semantics": ">=4.1.1",
93
93
  "nanoid": "3.3.8"
94
94
  },
95
- "gitHead": "61e64aac42ebe70da00e4f26fe5cb8ae854011c4"
95
+ "gitHead": "9091ff1de25df42822a51b4a22a7dabc084c4f98"
96
96
  }