@patternfly/documentation-framework 6.0.0-alpha.31 → 6.0.0-alpha.33

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,25 @@
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.0.0-alpha.33 (2024-05-22)
7
+
8
+ **Note:** Version bump only for package @patternfly/documentation-framework
9
+
10
+
11
+
12
+
13
+
14
+ # 6.0.0-alpha.32 (2024-05-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **styles:** Replace workspace styles with content classes ([#4011](https://github.com/patternfly/patternfly-org/issues/4011)) ([f6faa02](https://github.com/patternfly/patternfly-org/commit/f6faa02ab7400000a5c25ee6150754c3dc94ef92))
20
+
21
+
22
+
23
+
24
+
6
25
  # 6.0.0-alpha.31 (2024-05-21)
7
26
 
8
27
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { Title, Flex, FlexItem } from '@patternfly/react-core';
2
+ import { Title, Flex, FlexItem, Text } from '@patternfly/react-core';
3
3
  import LinkIcon from '@patternfly/react-icons/dist/esm/icons/link-icon';
4
4
  import { Link } from '../link/link';
5
5
  import { slugger } from '../../helpers/slugger';
6
+ import { css } from '@patternfly/react-styles';
6
7
 
7
8
  // "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl"
8
9
  const sizes = {
@@ -31,7 +32,7 @@ export const AutoLinkHeader = ({
31
32
  id={slug}
32
33
  size={sizes[size]}
33
34
  headingLevel={headingLevel || size}
34
- className={`ws-heading ${className}`}
35
+ className={css('ws-heading', className)}
35
36
  tabIndex={-1}
36
37
  >
37
38
  <Link href={`#${slug}`} className="ws-heading-anchor" tabIndex="-1" aria-hidden>
@@ -81,7 +81,7 @@ const HeaderTools = ({
81
81
  // useEffect(() => {
82
82
  // // reattach algolia to input each time search is expanded
83
83
  // if (hasSearch && isSearchExpanded) {
84
- // attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
84
+ // attachDocSearch(algolia, '.ws-global-search .pf-v6-c-text-input-group__text-input', 1000);
85
85
  // }
86
86
  // }, [isSearchExpanded])
87
87
 
@@ -225,7 +225,7 @@ export function attachDocSearch(algolia, inputSelector, timeout) {
225
225
  inputSelector,
226
226
  autocompleteOptions: {
227
227
  hint: false,
228
- appendTo: `.ws-global-search .pf-v5-c-text-input-group`,
228
+ appendTo: `.ws-global-search .pf-v6-c-text-input-group`,
229
229
  },
230
230
  debug: process.env.NODE_ENV !== 'production',
231
231
  ...algolia
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.0.0-alpha.31",
4
+ "version": "6.0.0-alpha.33",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -13,7 +13,7 @@
13
13
  "@babel/preset-env": "^7.24.3",
14
14
  "@babel/preset-react": "^7.24.1",
15
15
  "@mdx-js/util": "1.6.16",
16
- "@patternfly/ast-helpers": "^1.4.0-alpha.20",
16
+ "@patternfly/ast-helpers": "^1.4.0-alpha.22",
17
17
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
18
18
  "autoprefixer": "9.8.6",
19
19
  "babel-loader": "^9.1.3",
@@ -80,5 +80,5 @@
80
80
  "react": "^17.0.0 || ^18.0.0",
81
81
  "react-dom": "^17.0.0 || ^18.0.0"
82
82
  },
83
- "gitHead": "402dff5cfac724c799b8dfcfa116e6ae5522a3bf"
83
+ "gitHead": "c705b7607c550b188e9b0356c9cea7c4dc4abd7a"
84
84
  }
@@ -1,10 +1,8 @@
1
1
  const visit = require('unist-util-visit');
2
2
 
3
- const styledMdTags = [
3
+ const contentStyledMdTags = [
4
4
  'p',
5
5
  'ul',
6
- 'ul',
7
- 'ul',
8
6
  'ol',
9
7
  'li',
10
8
  'dl',
@@ -12,35 +10,44 @@ const styledMdTags = [
12
10
  'small',
13
11
  'hr',
14
12
  'dt',
13
+ 'dd'
14
+ ];
15
+
16
+ const styledMdTags = [
17
+ ...contentStyledMdTags,
15
18
  'code',
16
19
  'table',
17
20
  'img'
18
- ];
21
+ ]
19
22
 
20
23
  function styledTags() {
21
24
  return tree => {
22
25
  visit(tree, 'element', node => {
26
+ if (contentStyledMdTags.includes(node.tagName)) {
27
+ node.properties.className += `pf-v6-c-content--${node.tagName}`;
28
+ }
29
+
23
30
  if (styledMdTags.includes(node.tagName)) {
24
31
  node.properties.className = node.properties.className || '';
25
32
  node.properties.className += node.properties.className ? ' ' : '';
26
- node.properties.className += `ws-${node.tagName}`;
27
- // Match pf-v5-c-table implementation
33
+ node.properties.className += `ws-${node.tagName} `;
34
+ // Match pf-v6-c-table implementation
28
35
  // https://pf4.patternfly.org/components/table/html/basic-table/
29
36
  if (node.tagName === 'table') {
30
- node.properties.className += ' pf-v5-c-table pf-m-grid-lg pf-m-compact';
37
+ node.properties.className += ' pf-v6-c-table pf-m-grid-lg pf-m-compact';
31
38
  node.properties.role = 'grid';
32
39
  let columnHeaders = [];
33
40
  for (let child of node.children) {
34
41
  if (child.tagName === 'thead') {
35
- child.properties.className = 'pf-v5-c-table__thead';
42
+ child.properties.className = 'pf-v6-c-table__thead';
36
43
  // Find column headers
37
44
  const tr = child.children.find(child => child.tagName === 'tr');
38
45
  tr.properties.role = 'row';
39
- tr.properties.className = 'pf-v5-c-table__tr';
46
+ tr.properties.className = 'pf-v6-c-table__tr';
40
47
  tr.children
41
48
  .filter(child => child.tagName === 'th')
42
49
  .forEach(th => {
43
- th.properties.className = `${th.properties.className} pf-v5-c-table__th pf-m-wrap`;
50
+ th.properties.className = `${th.properties.className} pf-v6-c-table__th pf-m-wrap`;
44
51
  th.properties.role = 'columnheader';
45
52
  th.properties.scope = 'col';
46
53
  let colName = '';
@@ -57,17 +64,17 @@ function styledTags() {
57
64
  }
58
65
  else if (child.tagName === 'tbody') {
59
66
  child.properties.role = 'rowgroup';
60
- child.properties.className = 'pf-v5-c-table__tbody';
67
+ child.properties.className = 'pf-v6-c-table__tbody';
61
68
  child.children
62
69
  .filter(tr => tr.tagName === 'tr')
63
70
  .forEach(tr => {
64
71
  tr.properties.role = 'row';
65
- tr.properties.className = 'pf-v5-c-table__tr';
72
+ tr.properties.className = 'pf-v6-c-table__tr';
66
73
  tr.children
67
74
  .filter(td => td.tagName === 'td')
68
75
  .forEach((td, i) => {
69
76
  td.properties.role = 'cell';
70
- td.properties.className = 'pf-v5-c-table__td';
77
+ td.properties.className = 'pf-v6-c-table__td';
71
78
  if (columnHeaders[i]) {
72
79
  td.properties['data-label'] = columnHeaders[i];
73
80
  }
package/templates/mdx.css CHANGED
@@ -47,10 +47,6 @@
47
47
  /* font-family: var(--pf-v6-global--FontFamily--monospace); */
48
48
  }
49
49
 
50
- .ws-p + .ws-code {
51
- margin-bottom: var(--pf-v6-c-content--MarginBottom);
52
- }
53
-
54
50
  .ws-image {
55
51
  text-align: center;
56
52
  width: "600px";
@@ -89,220 +85,12 @@
89
85
  vertical-align: top;
90
86
  }
91
87
 
92
- /*
93
- * Copied from pf-v6-c-content.
94
- */
95
- :root {
96
- --pf-v6-c-content--MarginBottom: var(--pf-t--global--spacer--md);
97
- /* --pf-v6-c-content--LineHeight: var(--pf-v6-global--LineHeight--md); */
98
- /* --pf-v6-c-content--FontSize: var(--pf-v6-global--FontSize--md); */
99
- /* --pf-v6-c-content--FontWeight: var(--pf-v6-global--FontWeight--normal); */
100
- /* --pf-v6-c-content--Color: var(--pf-v6-global--Color--100); */
101
- /* --pf-v6-c-content--heading--FontFamily: var(--pf-v6-global--FontFamily--heading); */
102
- --pf-v6-c-content--h1--MarginTop: var(--pf-t--global--spacer--lg);
103
- --pf-v6-c-content--h1--MarginBottom: var(--pf-t--global--spacer--sm);
104
- /* --pf-v6-c-content--h1--LineHeight: var(--pf-v6-global--LineHeight--sm); */
105
- /* --pf-v6-c-content--h1--FontSize: var(--pf-v6-global--FontSize--2xl); */
106
- /* --pf-v6-c-content--h1--FontWeight: var(--pf-v6-global--FontWeight--normal); */
107
- --pf-v6-c-content--h2--MarginTop: var(--pf-t--global--spacer--lg);
108
- --pf-v6-c-content--h2--MarginBottom: var(--pf-t--global--spacer--sm);
109
- /* --pf-v6-c-content--h2--LineHeight: var(--pf-v6-global--LineHeight--sm); */
110
- /* --pf-v6-c-content--h2--FontSize: var(--pf-v6-global--FontSize--xl); */
111
- /* --pf-v6-c-content--h2--FontWeight: var(--pf-v6-global--FontWeight--normal); */
112
- --pf-v6-c-content--h3--MarginTop: var(--pf-t--global--spacer--lg);
113
- --pf-v6-c-content--h3--MarginBottom: var(--pf-t--global--spacer--sm);
114
- /* --pf-v6-c-content--h3--LineHeight: var(--pf-v6-global--LineHeight--md); */
115
- /* --pf-v6-c-content--h3--FontSize: var(--pf-v6-global--FontSize--lg); */
116
- /* --pf-v6-c-content--h3--FontWeight: var(--pf-v6-global--FontWeight--normal); */
117
- --pf-v6-c-content--h4--MarginTop: var(--pf-t--global--spacer--lg);
118
- --pf-v6-c-content--h4--MarginBottom: var(--pf-t--global--spacer--sm);
119
- /* --pf-v6-c-content--h4--LineHeight: var(--pf-v6-global--LineHeight--md); */
120
- /* --pf-v6-c-content--h4--FontSize: var(--pf-v6-global--FontSize--md); */
121
- /* --pf-v6-c-content--h4--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
122
- --pf-v6-c-content--h5--MarginTop: var(--pf-t--global--spacer--lg);
123
- --pf-v6-c-content--h5--MarginBottom: var(--pf-t--global--spacer--sm);
124
- /* --pf-v6-c-content--h5--LineHeight: var(--pf-v6-global--LineHeight--md); */
125
- /* --pf-v6-c-content--h5--FontSize: var(--pf-v6-global--FontSize--md); */
126
- /* --pf-v6-c-content--h5--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
127
- --pf-v6-c-content--h6--MarginTop: var(--pf-t--global--spacer--lg);
128
- --pf-v6-c-content--h6--MarginBottom: var(--pf-t--global--spacer--sm);
129
- /* --pf-v6-c-content--h6--LineHeight: var(--pf-v6-global--LineHeight--md); */
130
- /* --pf-v6-c-content--h6--FontSize: var(--pf-v6-global--FontSize--md); */
131
- /* --pf-v6-c-content--h6--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
132
- --pf-v6-c-content--small--MarginBottom: var(--pf-t--global--spacer--md);
133
- /* --pf-v6-c-content--small--LineHeight: var(--pf-v6-global--LineHeight--md); */
134
- /* --pf-v6-c-content--small--FontSize: var(--pf-v6-global--FontSize--sm); */
135
- /* --pf-v6-c-content--small--Color: var(--pf-v6-global--Color--200); */
136
- /* --pf-v6-c-content--small--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
137
- /* --pf-v6-c-content--a--Color: var(--pf-v6-global--link--Color); */
138
- /* --pf-v6-c-content--a--TextDecoration: var(--pf-v6-global--link--TextDecoration); */
139
- /* --pf-v6-c-content--a--hover--Color: var(--pf-v6-global--link--Color--hover); */
140
- /* --pf-v6-c-content--a--hover--TextDecoration: var(--pf-v6-global--link--TextDecoration--hover); */
141
- --pf-v6-c-content--blockquote--PaddingTop: var(--pf-t--global--spacer--md);
142
- --pf-v6-c-content--blockquote--PaddingRight: var(--pf-t--global--spacer--md);
143
- --pf-v6-c-content--blockquote--PaddingBottom: var(--pf-t--global--spacer--md);
144
- --pf-v6-c-content--blockquote--PaddingLeft: var(--pf-t--global--spacer--md);
145
- /* --pf-v6-c-content--blockquote--FontWeight: var(--pf-v6-global--FontWeight--light); */
146
- /* --pf-v6-c-content--blockquote--Color: var(--pf-v6-global--Color--200); */
147
- /* --pf-v6-c-content--blockquote--BorderLeftColor: var(--pf-v6-global--BorderColor--100); */
148
- /* --pf-v6-c-content--blockquote--BorderLeftWidth: var(--pf-v6-global--BorderWidth--lg); */
149
- --pf-v6-c-content--ol--PaddingLeft: var(--pf-t--global--spacer--lg);
150
- --pf-v6-c-content--ol--MarginTop: var(--pf-t--global--spacer--md);
151
- --pf-v6-c-content--ol--MarginLeft: var(--pf-t--global--spacer--lg);
152
- --pf-v6-c-content--ol--nested--MarginTop: var(--pf-t--global--spacer--sm);
153
- --pf-v6-c-content--ol--nested--MarginLeft: var(--pf-t--global--spacer--sm);
154
- --pf-v6-c-content--ul--PaddingLeft: var(--pf-t--global--spacer--lg);
155
- --pf-v6-c-content--ul--MarginTop: var(--pf-t--global--spacer--md);
156
- --pf-v6-c-content--ul--MarginLeft: var(--pf-t--global--spacer--lg);
157
- --pf-v6-c-content--ul--nested--MarginTop: var(--pf-t--global--spacer--sm);
158
- --pf-v6-c-content--ul--nested--MarginLeft: var(--pf-t--global--spacer--sm);
159
- /* --pf-v6-c-content--ul--ListStyle: var(--pf-v6-global--ListStyle); */
160
- --pf-v6-c-content--li--MarginTop: var(--pf-t--global--spacer--sm);
161
- --pf-v6-c-content--dl--ColumnGap: var(--pf-t--global--spacer--2xl);
162
- --pf-v6-c-content--dl--RowGap: var(--pf-t--global--spacer--md);
163
- /* --pf-v6-c-content--dt--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
164
- --pf-v6-c-content--dt--MarginTop: var(--pf-t--global--spacer--md);
165
- --pf-v6-c-content--dt--sm--MarginTop: 0;
166
- /* --pf-v6-c-content--hr--Height: var(--pf-v6-global--BorderWidth--sm); */
167
- /* --pf-v6-c-content--hr--BackgroundColor: var(--pf-v6-global--BorderColor--100); */
168
- font-size: var(--pf-v6-c-content--FontSize);
169
- line-height: var(--pf-v6-c-content--LineHeight);
170
- color: var(--pf-v6-c-content--Color); }
171
- .ws-li + li {
172
- margin-top: var(--pf-v6-c-content--li--MarginTop); }
173
- .ws-p:not(:last-child),
174
- .ws-dl:not(:last-child),
175
- .ws-ol:not(:last-child),
176
- .ws-ul:not(:last-child),
177
- .ws-blockquote:not(:last-child),
178
- .ws-small:not(:last-child),
179
- .ws-pre:not(:last-child),
180
- .ws-hr:not(:last-child),
181
- .ws-table:not(:last-child),
182
- .ws-content-table:not(:last-child) {
183
- margin-bottom: var(--pf-v6-c-content--MarginBottom); }
184
- .ws-h1,
185
- .ws-h2,
186
- .ws-h3,
187
- .ws-h4,
188
- .ws-h5,
189
- .ws-h6 {
190
- margin: 0;
191
- font-family: var(--pf-v6-c-content--heading--FontFamily); }
192
- .ws-ol,
193
- .ws-ul {
194
- margin: 0; }
195
- .ws-h1 {
196
- margin-bottom: var(--pf-v6-c-content--h1--MarginBottom);
197
- font-size: var(--pf-v6-c-content--h1--FontSize);
198
- font-weight: var(--pf-v6-c-content--h1--FontWeight);
199
- line-height: var(--pf-v6-c-content--h1--LineHeight); }
200
- .ws-h1:not(:first-child) {
201
- margin-top: var(--pf-v6-c-content--h1--MarginTop); }
202
- .ws-h2 {
203
- margin-bottom: var(--pf-v6-c-content--h2--MarginBottom);
204
- font-size: var(--pf-v6-c-content--h2--FontSize);
205
- font-weight: var(--pf-v6-c-content--h2--FontWeight);
206
- line-height: var(--pf-v6-c-content--h2--LineHeight);
207
- margin-top: var(--pf-v6-c-content--h2--MarginTop); }
208
- .ws-h3 {
209
- margin-bottom: var(--pf-v6-c-content--h3--MarginBottom);
210
- font-size: var(--pf-v6-c-content--h3--FontSize);
211
- font-weight: var(--pf-v6-c-content--h3--FontWeight);
212
- line-height: var(--pf-v6-c-content--h3--LineHeight); }
213
- .ws-h3:not(:first-child) {
214
- margin-top: var(--pf-v6-c-content--h3--MarginTop); }
215
- .ws-h4 {
216
- margin-bottom: var(--pf-v6-c-content--h4--MarginBottom);
217
- font-size: var(--pf-v6-c-content--h4--FontSize);
218
- font-weight: var(--pf-v6-c-content--h4--FontWeight);
219
- line-height: var(--pf-v6-c-content--h4--LineHeight); }
220
- .ws-h4:not(:first-child) {
221
- margin-top: var(--pf-v6-c-content--h4--MarginTop); }
222
- .ws-h5 {
223
- margin-bottom: var(--pf-v6-c-content--h5--MarginBottom);
224
- font-size: var(--pf-v6-c-content--h5--FontSize);
225
- font-weight: var(--pf-v6-c-content--h5--FontWeight);
226
- line-height: var(--pf-v6-c-content--h5--LineHeight); }
227
- .ws-h5:not(:first-child) {
228
- margin-top: var(--pf-v6-c-content--h5--MarginTop); }
229
- .ws-h6 {
230
- margin-bottom: var(--pf-v6-c-content--h6--MarginBottom);
231
- font-size: var(--pf-v6-c-content--h6--FontSize);
232
- font-weight: var(--pf-v6-c-content--h6--FontWeight);
233
- line-height: var(--pf-v6-c-content--h6--LineHeight); }
234
- .ws-h6:not(:first-child) {
235
- margin-top: var(--pf-v6-c-content--h6--MarginTop); }
236
- .ws-small {
237
- display: block;
238
- font-size: var(--pf-v6-c-content--small--FontSize);
239
- line-height: var(--pf-v6-c-content--small--LineHeight);
240
- color: var(--pf-v6-c-content--small--Color); }
241
- .ws-small:not(:last-child) {
242
- margin-bottom: var(--pf-v6-c-content--small--MarginBottom); }
243
- .ws-blockquote {
244
- padding: var(--pf-v6-c-content--blockquote--PaddingTop) var(--pf-v6-c-content--blockquote--PaddingRight) var(--pf-v6-c-content--blockquote--PaddingBottom) var(--pf-v6-c-content--blockquote--PaddingLeft);
245
- font-weight: var(--pf-v6-c-content--blockquote--FontWeight);
246
- color: var(--pf-v6-c-content--blockquote--Color);
247
- border-left: var(--pf-v6-c-content--blockquote--BorderLeftWidth) solid var(--pf-v6-c-content--blockquote--BorderLeftColor); }
248
- .ws-hr {
249
- height: var(--pf-v6-c-content--hr--Height);
250
- background-color: var(--pf-v6-c-content--hr--BackgroundColor);
251
- border: none; }
252
- .ws-ol {
253
- padding-left: var(--pf-v6-c-content--ol--PaddingLeft);
254
- margin-top: var(--pf-v6-c-content--ol--MarginTop);
255
- margin-left: var(--pf-v6-c-content--ol--MarginLeft); }
256
- .ws-ol ul {
257
- --pf-v6-c-content--ul--MarginTop: var(--pf-v6-c-content--ul--nested--MarginTop);
258
- --pf-v6-c-content--ul--MarginLeft: var(--pf-v6-c-content--ul--nested--MarginLeft); }
259
- .ws-ol ol {
260
- --pf-v6-c-content--ol--MarginTop: var(--pf-v6-c-content--ol--nested--MarginTop);
261
- --pf-v6-c-content--ol--MarginLeft: var(--pf-v6-c-content--ol--nested--MarginLeft); }
262
- .ws-ul {
263
- padding-left: var(--pf-v6-c-content--ul--PaddingLeft);
264
- margin-top: var(--pf-v6-c-content--ul--MarginTop);
265
- margin-left: var(--pf-v6-c-content--ul--MarginLeft);
266
- list-style: var(--pf-v6-c-content--ul--ListStyle); }
267
- .ws-ul ul {
268
- --pf-v6-c-content--ul--MarginTop: var(--pf-v6-c-content--ul--nested--MarginTop);
269
- --pf-v6-c-content--ul--MarginLeft: var(--pf-v6-c-content--ul--nested--MarginLeft); }
270
- .ws-ul ol {
271
- --pf-v6-c-content--ol--MarginTop: var(--pf-v6-c-content--ol--nested--MarginTop);
272
- --pf-v6-c-content--ol--MarginLeft: var(--pf-v6-c-content--ol--nested--MarginLeft); }
273
- .ws-dl {
274
- display: grid;
275
- grid-template-columns: 1fr; }
276
- @media screen and (min-width: 576px) {
277
- .ws-dl {
278
- grid-template: auto / auto 1fr;
279
- grid-column-gap: var(--pf-v6-c-content--dl--ColumnGap);
280
- grid-row-gap: var(--pf-v6-c-content--dl--RowGap); } }
281
- .ws-dt {
282
- font-weight: var(--pf-v6-c-content--dt--FontWeight); }
283
- .ws-dt:not(:first-child) {
284
- margin-top: var(--pf-v6-c-content--dt--MarginTop); }
285
- @media screen and (min-width: 576px) {
286
- .ws-dt:not(:first-child) {
287
- --pf-v6-c-content--dt--MarginTop: var(--pf-v6-c-content--dt--sm--MarginTop); } }
288
- @media screen and (min-width: 576px) {
289
- .ws-dt {
290
- grid-column: 1; } }
291
- @media screen and (min-width: 576px) {
292
- .ws-dd {
293
- grid-column: 2; } }
294
-
295
88
  @media screen and (max-width: 1450px) {
296
89
  .ws-mdx-child-template {
297
90
  flex-direction: column;
298
91
  }
299
92
  }
300
93
 
301
- .ws-mdx-content {
302
- flex-grow: 1;
303
- min-width: 0;
304
- }
305
-
306
94
  /* Design asked for this. A nice side effect is that the TOC doesn't "jump" between pages */
307
95
  .ws-mdx-content-content {
308
96
  max-width: 832px;
package/templates/mdx.js CHANGED
@@ -98,13 +98,13 @@ const MDXChildTemplate = ({
98
98
  {toc.length > 1 && (
99
99
  <TableOfContents items={toc} />
100
100
  )}
101
- <div className="ws-mdx-content">
101
+ <div>
102
102
  <div className={innerContentWrapperClass()}>
103
103
  {InlineAlerts}
104
104
  <Component />
105
105
  {functionDocumentation.length > 0 && (
106
106
  <React.Fragment>
107
- <AutoLinkHeader size="h2" className="ws-h2" id="functions">
107
+ <AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="functions">
108
108
  Functions
109
109
  </AutoLinkHeader>
110
110
  <FunctionsTable functionDescriptions={functionDocumentation}/>
@@ -112,7 +112,7 @@ const MDXChildTemplate = ({
112
112
  )}
113
113
  {propsTitle && (
114
114
  <React.Fragment>
115
- <AutoLinkHeader size="h2" className="ws-h2" id="props">
115
+ <AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="props">
116
116
  {propsTitle}
117
117
  </AutoLinkHeader>
118
118
  {propComponents.map(component => (
@@ -128,7 +128,7 @@ const MDXChildTemplate = ({
128
128
  )}
129
129
  {cssPrefix.length > 0 && (
130
130
  <React.Fragment>
131
- <AutoLinkHeader size="h2" className="ws-h2" id="css-variables">
131
+ <AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="css-variables">
132
132
  {cssVarsTitle}
133
133
  </AutoLinkHeader>
134
134
  {cssPrefix.map((prefix, index) => (