@patternfly/documentation-framework 6.27.1 → 6.27.3
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.27.3 (2025-10-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **TOC:** fixes toc showing incorrectly at exactly 1450px ([#4802](https://github.com/patternfly/patternfly-org/issues/4802)) ([de0c2b4](https://github.com/patternfly/patternfly-org/commit/de0c2b4d1428045b71c78e4a15b4162a86f9956d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 6.27.2 (2025-10-13)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## 6.27.1 (2025-10-10)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
margin-block-end: var(--pf-t--global--spacer--md);
|
|
9
9
|
margin-inline-start: calc(var(--pf-v6-c-page__main-section--PaddingInlineStart) * -1);
|
|
10
10
|
margin-inline-end: calc(var(--pf-v6-c-page__main-section--PaddingInlineEnd) * -2);
|
|
11
|
-
padding-block-start: var(--pf-t--global--spacer--
|
|
12
|
-
padding-block-end: var(--pf-t--global--spacer--
|
|
11
|
+
padding-block-start: var(--pf-t--global--spacer--sm);
|
|
12
|
+
padding-block-end: var(--pf-t--global--spacer--sm);
|
|
13
13
|
padding-inline-start: var(--pf-t--global--spacer--md);
|
|
14
14
|
padding-inline-end: 0;
|
|
15
15
|
box-shadow: var(--pf-t--global--box-shadow--lg--bottom);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/* Mobile jumplinks */
|
|
27
|
-
@media (max-width:
|
|
27
|
+
@media (max-width: 1449px) {
|
|
28
28
|
.ws-toc.pf-m-expanded .pf-v6-c-jump-links__main {
|
|
29
29
|
max-height: 65vh;
|
|
30
30
|
overflow-y:auto;
|
|
@@ -46,19 +46,20 @@
|
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@media (min-width:
|
|
49
|
+
@media (min-width: 1450px) {
|
|
50
50
|
.ws-toc {
|
|
51
|
-
width:
|
|
51
|
+
min-width: 270px;
|
|
52
|
+
max-width: 320px;
|
|
52
53
|
max-height: calc(100vh - 76px);
|
|
53
54
|
overflow-y: auto;
|
|
54
55
|
/* Hide TOC scrollbar IE, Edge & Firefox */
|
|
55
56
|
-ms-overflow-style: none;
|
|
56
57
|
scrollbar-width: none;
|
|
57
|
-
|
|
58
|
-
padding: 0 var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--2xl);
|
|
59
|
-
flex-grow: 1;
|
|
58
|
+
padding: 0 0 0 var(--pf-t--global--spacer--2xl);
|
|
60
59
|
background: none;
|
|
61
60
|
margin: 0;
|
|
61
|
+
order: 1;
|
|
62
|
+
flex: 1 1 320px;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.ws-toc,
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
text-align: left;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
@media (min-width:
|
|
76
|
+
@media (min-width: 1450px) {
|
|
76
77
|
.ws-toc .pf-v6-c-jump-links__main {
|
|
77
78
|
margin-bottom: var(--jump-links-main-margin-bottom);
|
|
78
79
|
}
|
|
@@ -18,6 +18,17 @@ export const TableOfContents = ({ items }) => {
|
|
|
18
18
|
const { innerWidth } = window;
|
|
19
19
|
innerWidth !== width && setWidth(innerWidth);
|
|
20
20
|
};
|
|
21
|
+
|
|
22
|
+
const getOffset = () => {
|
|
23
|
+
if (width >= 1450) {
|
|
24
|
+
return 88 + stickyNavHeight;
|
|
25
|
+
} else if (width >= 768) {
|
|
26
|
+
return 142 + stickyNavHeight;
|
|
27
|
+
} else {
|
|
28
|
+
return 190 + stickyNavHeight;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
21
32
|
let jumpLinksItems = [];
|
|
22
33
|
let wasSublistRendered = false;
|
|
23
34
|
|
|
@@ -96,7 +107,7 @@ export const TableOfContents = ({ items }) => {
|
|
|
96
107
|
style={{ top: stickyNavHeight,
|
|
97
108
|
'--jump-links-main-margin-bottom': `${stickyNavHeight}px`
|
|
98
109
|
}}
|
|
99
|
-
offset={
|
|
110
|
+
offset={getOffset()}
|
|
100
111
|
expandable={{ default: 'expandable', '2xl': 'nonExpandable' }}
|
|
101
112
|
>
|
|
102
113
|
{renderJumpLinksItems()}
|
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.27.
|
|
4
|
+
"version": "6.27.3",
|
|
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.
|
|
15
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.293",
|
|
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": "
|
|
98
|
+
"gitHead": "b455d81018a53a3986a2dca9f12628d179fe8f7e"
|
|
99
99
|
}
|
package/templates/mdx.css
CHANGED
package/templates/mdx.js
CHANGED
|
@@ -108,7 +108,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
108
108
|
);
|
|
109
109
|
// Create dynamic component for @reach/router
|
|
110
110
|
const ChildComponent = () => (
|
|
111
|
-
<div className={source !== 'landing-pages' ? 'pf-v6-l-flex' : ''}>
|
|
111
|
+
<div className={source !== 'landing-pages' ? 'pf-v6-l-flex pf-v6-m-column pf-m-nowrap-on-2xl' : ''}>
|
|
112
112
|
{toc.length > 1 && <TableOfContents items={toc} />}
|
|
113
113
|
<Stack hasGutter className={(source !== 'landing-pages' && 'ws-example-page-wrapper')}>
|
|
114
114
|
{InlineAlerts}
|