@patternfly/documentation-framework 2.0.0-alpha.32 → 2.0.0-alpha.34

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
+ # 2.0.0-alpha.34 (2023-05-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * **docs:** Update docs framework with latest react code ([#3517](https://github.com/patternfly/patternfly-org/issues/3517)) ([2df0147](https://github.com/patternfly/patternfly-org/commit/2df014737dbbe35033d0b28ee71b40d5fbe22ed2))
12
+
13
+
14
+
15
+
16
+
17
+ # 2.0.0-alpha.33 (2023-05-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **css:** update css selectors for v5 versioning ([#3516](https://github.com/patternfly/patternfly-org/issues/3516)) ([f681945](https://github.com/patternfly/patternfly-org/commit/f681945e2de1200fbb7d2d6ab8262091b1e72a8e))
23
+
24
+
25
+
26
+
27
+
6
28
  # 2.0.0-alpha.32 (2023-05-02)
7
29
 
8
30
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -3,8 +3,8 @@
3
3
  }
4
4
 
5
5
  .ws-heading-anchor {
6
- color: var(--pf-global--Color--100);
7
- transform: translate(calc(-100% - var(--pf-global--spacer--xs)), -50%);
6
+ color: var(--pf-v5-global--Color--100);
7
+ transform: translate(calc(-100% - var(--pf-v5-global--spacer--xs)), -50%);
8
8
  opacity: 0;
9
9
  position: absolute;
10
10
  left: 0;
@@ -2,14 +2,14 @@
2
2
  display: inline-block;
3
3
  height: 18px;
4
4
  width: 18px;
5
- border: var(--pf-global--BorderWidth--sm) solid var(--pf-global--BorderColor--200);
6
- border-radius: var(--pf-global--BorderRadius--lg);
5
+ border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--200);
6
+ border-radius: var(--pf-v5-global--BorderRadius--lg);
7
7
  }
8
8
 
9
9
  .ws-td-text {
10
- font-size: var(--pf-global--FontSize--sm) !important;
10
+ font-size: var(--pf-v5-global--FontSize--sm) !important;
11
11
  }
12
12
 
13
13
  .ws-css-property {
14
- padding: var(--pf-global--spacer--xs) var(--pf-global--spacer--md);
14
+ padding: var(--pf-v5-global--spacer--xs) var(--pf-v5-global--spacer--md);
15
15
  }
@@ -3,52 +3,52 @@
3
3
  }
4
4
 
5
5
  .ws-example {
6
- margin-top: var(--pf-global--spacer--lg);
7
- margin-bottom: var(--pf-global--spacer--lg);
6
+ margin-top: var(--pf-v5-global--spacer--lg);
7
+ margin-bottom: var(--pf-v5-global--spacer--lg);
8
8
  }
9
9
 
10
10
  .ws-example > .ws-example-header {
11
- padding: var(--pf-global--spacer--md);
11
+ padding: var(--pf-v5-global--spacer--md);
12
12
  }
13
13
 
14
14
  .ws-example-header > .ws-example-heading:not(:last-child) {
15
- margin-bottom: var(--pf-global--spacer--md);
15
+ margin-bottom: var(--pf-v5-global--spacer--md);
16
16
  }
17
17
 
18
- .ws-code-editor:not(.ws-example-code-expanded) > .pf-c-code-editor__header::before {
19
- --pf-c-code-editor__header--before--BorderBottomWidth: 0;
18
+ .ws-code-editor:not(.ws-example-code-expanded) > .pf-v5-c-code-editor__header::before {
19
+ --pf-v5-c-code-editor__header--before--BorderBottomWidth: 0;
20
20
  }
21
21
 
22
22
  .ws-code-editor-control {
23
- --pf-c-button--m-control--BackgroundColor: transparent;
24
- --pf-c-button--m-control--active--BackgroundColor: transparent;
25
- --pf-c-button--m-control--focus--BackgroundColor: transparent;
26
- --pf-c-button--m-control--hover--BackgroundColor: transparent;
23
+ --pf-v5-c-button--m-control--BackgroundColor: transparent;
24
+ --pf-v5-c-button--m-control--active--BackgroundColor: transparent;
25
+ --pf-v5-c-button--m-control--focus--BackgroundColor: transparent;
26
+ --pf-v5-c-button--m-control--hover--BackgroundColor: transparent;
27
27
  }
28
28
 
29
- .ws-code-editor-control.pf-c-button {
30
- --pf-c-button--after--BorderWidth: 0;
29
+ .ws-code-editor-control.pf-v5-c-button {
30
+ --pf-v5-c-button--after--BorderWidth: 0;
31
31
  }
32
32
 
33
33
  .ws-preview {
34
- padding: var(--pf-global--spacer--md);
35
- background-color: var(--pf-global--BackgroundColor--100);
36
- border-bottom: var(--pf-global--BorderWidth--sm) solid var(--pf-global--BorderColor--300);
34
+ padding: var(--pf-v5-global--spacer--md);
35
+ background-color: var(--pf-v5-global--BackgroundColor--100);
36
+ border-bottom: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--300);
37
37
  transition: width .2s ease-in-out;
38
38
  }
39
39
 
40
40
  .ws-core-c-page.ws-preview > .ws-preview-html,
41
- .ws-react-c-page.ws-preview > .pf-c-page {
41
+ .ws-react-c-page.ws-preview > .pf-v5-c-page {
42
42
  overflow: hidden;
43
43
  }
44
44
 
45
45
  .ws-editor {
46
- font-size: var(--pf-global--FontSize--md);
46
+ font-size: var(--pf-v5-global--FontSize--md);
47
47
  }
48
48
 
49
49
  .ws-editor .token.punctuation,
50
50
  .ws-editor .token.operator {
51
- color: var(--pf-global--danger-color--100);
51
+ color: var(--pf-v5-global--danger-color--100);
52
52
  }
53
53
 
54
54
  .ws-preview__thumbnail-link {
@@ -100,22 +100,22 @@
100
100
  color: rgba(255,255,255,.4);
101
101
  }
102
102
 
103
- .pf-c-badge.ws-beta-badge {
104
- --pf-c-badge--m-unread--BackgroundColor: var(--pf-global--BackgroundColor--100);
105
- --pf-c-badge--m-unread--Color: var(--pf-global--primary-color--100);
106
- border: var(--pf-global--BorderWidth--sm) solid var(--pf-global--primary-color--100);
103
+ .pf-v5-c-badge.ws-beta-badge {
104
+ --pf-v5-c-badge--m-unread--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
105
+ --pf-v5-c-badge--m-unread--Color: var(--pf-v5-global--primary-color--100);
106
+ border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--primary-color--100);
107
107
  }
108
108
 
109
109
  .ws-prop-required {
110
- color: var(--pf-global--danger-color--100);
110
+ color: var(--pf-v5-global--danger-color--100);
111
111
  }
112
112
 
113
113
  .ws-theme-switch-full-page {
114
114
  position: fixed;
115
115
  right: 0;
116
116
  bottom: 0;
117
- padding: var(--pf-global--spacer--md);
118
- z-index: var(--pf-global--ZIndex--2xl);
117
+ padding: var(--pf-v5-global--spacer--md);
118
+ z-index: var(--pf-v5-global--ZIndex--2xl);
119
119
  }
120
120
 
121
121
  .ws-theme-switch-full-page::before {
@@ -125,11 +125,11 @@
125
125
  content: "";
126
126
  width: 100%;
127
127
  height: 100%;
128
- background-color: var(--pf-global--BackgroundColor--100);
128
+ background-color: var(--pf-v5-global--BackgroundColor--100);
129
129
  opacity: 0.8;
130
- box-shadow: var(--pf-global--BoxShadow--sm);
130
+ box-shadow: var(--pf-v5-global--BoxShadow--sm);
131
131
  }
132
132
 
133
133
  .pf-theme-dark .ws-theme-switch-full-page::before {
134
- background-color: var(--pf-global--BackgroundColor--300);
134
+ background-color: var(--pf-v5-global--BackgroundColor--300);
135
135
  }
@@ -119,7 +119,7 @@ export const Example = ({
119
119
  if (lang === 'html') {
120
120
  livePreview = (
121
121
  <div
122
- className={css('ws-preview-html', isFullscreenPreview && 'pf-u-h-100')}
122
+ className={css('ws-preview-html', isFullscreenPreview && 'pf-v5-u-h-100')}
123
123
  dangerouslySetInnerHTML={{ __html: editorCode }}
124
124
  />
125
125
  );
@@ -152,7 +152,7 @@ export const Example = ({
152
152
 
153
153
  if (isFullscreenPreview) {
154
154
  return (
155
- <div id={previewId} className={css(className, 'pf-u-h-100')}>
155
+ <div id={previewId} className={css(className, 'pf-v5-u-h-100')}>
156
156
  {livePreview}
157
157
  {hasDarkThemeSwitcher && (
158
158
  <div className="ws-theme-switch-full-page">
@@ -178,7 +178,7 @@ export const Example = ({
178
178
  <div className="ws-example">
179
179
  <div className="ws-example-header">
180
180
  <AutoLinkHeader
181
- metaText={isBeta && <Badge className="ws-beta-badge pf-u-ml-xs">Beta</Badge>}
181
+ metaText={isBeta && <Badge className="ws-beta-badge pf-v5-u-ml-xs">Beta</Badge>}
182
182
  size="h4"
183
183
  headingLevel="h3"
184
184
  className="ws-example-heading"
@@ -1,11 +1,11 @@
1
- .ws-org-pfsite-l-footer.pf-c-page__main-section {
1
+ .ws-org-pfsite-l-footer.pf-v5-c-page__main-section {
2
2
  font-family: "RedHatText";
3
3
  font-weight: 300;
4
4
  background-color: #1a1a1a !important;
5
- --pf-c-page__main-section--PaddingTop: var(--pf-global--spacer--xl);
6
- --pf-c-page__main-section--PaddingRight: var(--pf-global--spacer--2xl);
7
- --pf-c-page__main-section--PaddingBottom: var(--pf-global--spacer--2xl);
8
- --pf-c-page__main-section--PaddingLeft: var(--pf-global--spacer--2xl);
5
+ --pf-v5-c-page__main-section--PaddingTop: var(--pf-v5-global--spacer--xl);
6
+ --pf-v5-c-page__main-section--PaddingRight: var(--pf-v5-global--spacer--2xl);
7
+ --pf-v5-c-page__main-section--PaddingBottom: var(--pf-v5-global--spacer--2xl);
8
+ --pf-v5-c-page__main-section--PaddingLeft: var(--pf-v5-global--spacer--2xl);
9
9
  /* Hide long overflowing tocs */
10
10
  z-index: 1;
11
11
  }
@@ -34,8 +34,8 @@
34
34
  }
35
35
  }
36
36
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links a {
37
- margin-right: var(--pf-global--spacer--md);
38
- color: var(--pf-global--Color--light-100) !important;
37
+ margin-right: var(--pf-v5-global--spacer--md);
38
+ color: var(--pf-v5-global--Color--light-100) !important;
39
39
  }
40
40
  .ws-org-pfsite-l-footer-column
41
41
  .ws-org-pfsite-footer-menu-social-links
@@ -43,8 +43,8 @@
43
43
  margin-right: 0;
44
44
  }
45
45
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
46
- margin-top: var(--pf-global--spacer--md);
47
- margin-bottom: var(--pf-global--spacer--md);
46
+ margin-top: var(--pf-v5-global--spacer--md);
47
+ margin-bottom: var(--pf-v5-global--spacer--md);
48
48
  }
49
49
  @media (max-width: 768px) {
50
50
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
@@ -71,7 +71,7 @@
71
71
  padding-right: 10px;
72
72
  }
73
73
  .ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link {
74
- color: var(--pf-global--Color--light-100);
74
+ color: var(--pf-v5-global--Color--light-100);
75
75
  font-size: 14px !important;
76
76
  }
77
77
  .ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link:hover {
@@ -86,19 +86,19 @@
86
86
  .ws-org-pfsite-l-footer-dark {
87
87
  background: #151515 !important;
88
88
  }
89
- .pf-c-page .pf-c-page__main-section.ws-org-pfsite-l-footer-dark {
89
+ .pf-v5-c-page .pf-v5-c-page__main-section.ws-org-pfsite-l-footer-dark {
90
90
  /* Hide long overflowing tocs */
91
91
  z-index: 1;
92
92
  }
93
- .pf-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
93
+ .pf-v5-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
94
94
  font-weight: 300;
95
95
  font-size: 12px;
96
96
  color: #d2d2d2;
97
97
  }
98
98
  .ws-org-pfsite-l-footer-dark a {
99
- padding-right: var(--pf-global--spacer--sm);
100
- padding-left: var(--pf-global--spacer--sm);
101
- border-right: var(--pf-global--BorderWidth--sm) solid #d2d2d2;
99
+ padding-right: var(--pf-v5-global--spacer--sm);
100
+ padding-left: var(--pf-v5-global--spacer--sm);
101
+ border-right: var(--pf-v5-global--BorderWidth--sm) solid #d2d2d2;
102
102
  font-weight: 300;
103
103
  color: #d2d2d2;
104
104
  text-decoration: underline;
@@ -19,12 +19,12 @@ export const Footer = () => (
19
19
  sm={12}
20
20
  md={6}
21
21
  mdOffset={1}
22
- className="pf-u-mb-lg pf-u-mb-0-on-sm"
22
+ className="pf-v5-u-mb-lg pf-v5-u-mb-0-on-sm"
23
23
  >
24
- <Grid className="pf-u-py-xl">
25
- <GridItem sm={6} md={4} className="pf-u-ml-md pf-u-ml-0-on-md pf-u-mb-xl pf-u-mb-0-on-md">
24
+ <Grid className="pf-v5-u-py-xl">
25
+ <GridItem sm={6} md={4} className="pf-v5-u-ml-md pf-v5-u-ml-0-on-md pf-v5-u-mb-xl pf-v5-u-mb-0-on-md">
26
26
  <p
27
- className="pf-c-title ws-org-pfsite-footer-menu-list-title"
27
+ className="pf-v5-c-title ws-org-pfsite-footer-menu-list-title"
28
28
  >
29
29
  QUICKLINKS
30
30
  </p>
@@ -82,10 +82,10 @@ export const Footer = () => (
82
82
  <GridItem
83
83
  sm={6}
84
84
  md={4}
85
- className="pf-u-mt-lg pf-u-mt-0-on-sm pf-u-ml-md pf-u-ml-0-on-md pf-u-mb-xl pf-u-mb-0-on-md"
85
+ className="pf-v5-u-mt-lg pf-v5-u-mt-0-on-sm pf-v5-u-ml-md pf-v5-u-ml-0-on-md pf-v5-u-mb-xl pf-v5-u-mb-0-on-md"
86
86
  >
87
87
  <p
88
- className="pf-c-title ws-org-pfsite-footer-menu-list-title"
88
+ className="pf-v5-c-title ws-org-pfsite-footer-menu-list-title"
89
89
  >
90
90
  CONTRIBUTE
91
91
  </p>
@@ -125,7 +125,7 @@ export const Footer = () => (
125
125
  <GridItem
126
126
  sm={6}
127
127
  md={4}
128
- className="pf-u-mt-lg pf-u-mt-0-on-md pf-u-ml-md pf-u-ml-0-on-md"
128
+ className="pf-v5-u-mt-lg pf-v5-u-mt-0-on-md pf-v5-u-ml-md pf-v5-u-ml-0-on-md"
129
129
  >
130
130
  <p
131
131
  className="ws-org-pfsite-footer-menu-list-title"
@@ -180,10 +180,10 @@ export const Footer = () => (
180
180
  </Grid>
181
181
  </GridItem>
182
182
  <GridItem sm={12} md={4}>
183
- <Grid className="pf-u-pt-xl ws-org-pfsite-l-footer-column">
184
- <GridItem className="pf-u-px-xl">
183
+ <Grid className="pf-v5-u-pt-xl ws-org-pfsite-l-footer-column">
184
+ <GridItem className="pf-v5-u-px-xl">
185
185
  <Link
186
- className="pf-c-page__header-brand-link pf-c-brand ws-org-pfsite-footer-menu-about-logo pf-u-pb-md"
186
+ className="pf-v5-c-page__header-brand-link pf-v5-c-brand ws-org-pfsite-footer-menu-about-logo pf-v5-u-pb-md"
187
187
  to="/"
188
188
  >
189
189
  <Brand src={logo} alt="Patternfly Logo" />
@@ -192,7 +192,7 @@ export const Footer = () => (
192
192
  PatternFly is an open source design system built to drive consistency and unify teams. From documentation and components to code examples and tutorials, PatternFly is a place where design and development can thrive. We’re on a mission to help teams build consistent, accessible, and scalable enterprise product experiences—the open source way.
193
193
  </p>
194
194
  </GridItem>
195
- <GridItem className="ws-org-pfsite-footer-menu-social-links pf-u-px-xl">
195
+ <GridItem className="ws-org-pfsite-footer-menu-social-links pf-v5-u-px-xl">
196
196
  <Link
197
197
  to="//github.com/patternfly"
198
198
  target="top"
@@ -213,7 +213,7 @@ export const Footer = () => (
213
213
  </Grid>
214
214
  </PageSection>
215
215
  <PageSection key="footer-2" className="ws-org-pfsite-l-footer-dark pf-m-no-fill">
216
- <Grid className="pf-u-py-xl-on-sm pf-u-py-0-on-md pf-u-align-items-center">
216
+ <Grid className="pf-v5-u-py-xl-on-sm pf-v5-u-py-0-on-md pf-v5-u-align-items-center">
217
217
  <GridItem md={2} mdOffset={1}>
218
218
  <Link
219
219
  to="//www.redhat.com"
@@ -233,7 +233,7 @@ export const Footer = () => (
233
233
  Copyright &copy; 2022 Red Hat, Inc.
234
234
  </span>
235
235
  </GridItem>
236
- <GridItem md={4} lg={5} className="pf-u-ml-xl-on-xl">
236
+ <GridItem md={4} lg={5} className="pf-v5-u-ml-xl-on-xl">
237
237
  <Link
238
238
  to="//www.redhat.com/en/about/privacy-policy"
239
239
  target="top"
@@ -9,6 +9,6 @@
9
9
  #ws-gdpr-banner {
10
10
  max-width: 95vw;
11
11
  flex-wrap: nowrap;
12
- background: var(--pf-global--BackgroundColor--100);
13
- border: var(--pf-global--BorderWidth--sm) solid var(--pf-global--Color--100);
12
+ background: var(--pf-v5-global--BackgroundColor--100);
13
+ border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--Color--100);
14
14
  }
@@ -14,8 +14,8 @@ export const GdprBanner = () => {
14
14
 
15
15
  return !isBannerOpen ? null : (
16
16
  <div className="ws-gdpr-banner-container pf-l-flex">
17
- <div id="ws-gdpr-banner" className="pf-l-flex pf-u-py-md pf-m-align-items-center">
18
- <p id="ws-gdpr-banner-text" className="pf-u-ml-xl">
17
+ <div id="ws-gdpr-banner" className="pf-l-flex pf-v5-u-py-md pf-m-align-items-center">
18
+ <p id="ws-gdpr-banner-text" className="pf-v5-u-ml-xl">
19
19
  We use cookies on our websites to deliver our online services.
20
20
  Details about how we use cookies and how you may disable them are set out in our <a href="//www.redhat.com/en/about/privacy-policy">Privacy Statement</a>.
21
21
  By using this website you agree to our use of cookies.
@@ -9,7 +9,7 @@ export const InlineAlert = ({
9
9
  <Alert
10
10
  variant={variant}
11
11
  title={title}
12
- className="pf-u-my-md"
12
+ className="pf-v5-u-my-md"
13
13
  style={{ marginBottom: '1rem' }}
14
14
  isInline
15
15
  component="h2"
@@ -18,9 +18,9 @@ import accessibleStyles from "@patternfly/react-styles/css/utilities/Accessibili
18
18
  export const PropsTable = ({ title, description, rows, allPropComponents }) => (
19
19
  <React.Fragment>
20
20
  <AutoLinkHeader size="h3">{title}</AutoLinkHeader>
21
- <Table className="pf-u-mt-md pf-u-mb-lg" variant="compact" aria-label={title} gridBreakPoint="grid-lg">
21
+ <Table className="pf-v5-u-mt-md pf-v5-u-mb-lg" variant="compact" aria-label={title} gridBreakPoint="grid-lg">
22
22
  <Caption>
23
- {description && <div className="pf-u-mb-md">{description}</div>}
23
+ {description && <div className="pf-v5-u-mb-md">{description}</div>}
24
24
  <div>
25
25
  <span className="ws-prop-required">*</span>required
26
26
  </div>
@@ -64,7 +64,7 @@ export const PropsTable = ({ title, description, rows, allPropComponents }) => (
64
64
  {row.beta && (
65
65
  <Badge
66
66
  key={`${row.name}-${idx}`}
67
- className="ws-beta-badge pf-u-ml-sm"
67
+ className="ws-beta-badge pf-v5-u-ml-sm"
68
68
  >
69
69
  Beta
70
70
  </Badge>
@@ -37,7 +37,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView }) => {
37
37
  )}
38
38
  </DataListCell>,
39
39
  <DataListCell width={5} key="text-description">
40
- <Split className="pf-u-mb-md">
40
+ <Split className="pf-v5-u-mb-md">
41
41
  <SplitItem isFilled>
42
42
  <TextContent>
43
43
  <Text component={TextVariants.h2}>
@@ -4,26 +4,26 @@
4
4
 
5
5
  .ws-section-gallery {
6
6
  /* top placement */
7
- margin-top: calc(var(--pf-c-page__main-section--PaddingTop) * -1);
7
+ margin-top: calc(var(--pf-v5-c-page__main-section--PaddingTop) * -1);
8
8
  }
9
9
 
10
10
  /* Toolbar styles */
11
- .ws-section-gallery .pf-c-toolbar {
12
- margin-left: calc(var(--pf-c-page__main-section--PaddingLeft) * -1);
13
- border-bottom: var(--pf-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-c-page__sidebar--m-light--BorderRightColor);
14
- margin-bottom: var(--pf-global--spacer--md);
15
- width: calc(100% + var(--pf-c-page__main-section--PaddingLeft) + var(--pf-c-page__main-section--PaddingRight));
11
+ .ws-section-gallery .pf-v5-c-toolbar {
12
+ margin-left: calc(var(--pf-v5-c-page__main-section--PaddingLeft) * -1);
13
+ border-bottom: var(--pf-v5-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-v5-c-page__sidebar--m-light--BorderRightColor);
14
+ margin-bottom: var(--pf-v5-global--spacer--md);
15
+ width: calc(100% + var(--pf-v5-c-page__main-section--PaddingLeft) + var(--pf-v5-c-page__main-section--PaddingRight));
16
16
  /* avoid hoverable data list items overlapping toolbar */
17
- z-index: calc(var(--pf-global--ZIndex--xs) + 2);
17
+ z-index: calc(var(--pf-v5-global--ZIndex--xs) + 2);
18
18
  }
19
19
 
20
20
  /* Match toolbar left-padding to gallery left-padding */
21
- .ws-section-gallery .pf-c-toolbar .pf-c-toolbar__content {
22
- --pf-c-toolbar__content--PaddingLeft: var(--pf-c-page__main-section--PaddingLeft);
21
+ .ws-section-gallery .pf-v5-c-toolbar .pf-v5-c-toolbar__content {
22
+ --pf-v5-c-toolbar__content--PaddingLeft: var(--pf-v5-c-page__main-section--PaddingLeft);
23
23
  }
24
24
 
25
25
  /* Avoid toolbar wrap on smaller screens */
26
- .ws-section-gallery .pf-c-toolbar__content-section {
26
+ .ws-section-gallery .pf-v5-c-toolbar__content-section {
27
27
  flex-wrap: nowrap;
28
28
  }
29
29
 
@@ -34,11 +34,11 @@
34
34
  }
35
35
 
36
36
  /* Ensure same height for all cards in a gallery row */
37
- .ws-section-gallery .pf-c-card {
37
+ .ws-section-gallery .pf-v5-c-card {
38
38
  height: 100%;
39
39
  }
40
40
 
41
41
  /* Limit width for data list view only */
42
- .ws-section-gallery .pf-c-data-list {
42
+ .ws-section-gallery .pf-v5-c-data-list {
43
43
  max-width: 956px;
44
44
  }
@@ -22,7 +22,7 @@ export const SectionGalleryToolbar = ({ galleryItems, searchTerm, setSearchTerm,
22
22
  </ToggleGroup>
23
23
  </ToolbarItem>
24
24
  </ToolbarGroup>
25
- <ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-c-toolbar__item--MinWidth': "max-content"}}>
25
+ <ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-v5-c-toolbar__item--MinWidth': "max-content"}}>
26
26
  <Text component={TextVariants.small}>{ galleryItems.length }{ countText }</Text>
27
27
  </ToolbarItem>
28
28
  </ToolbarContent>
@@ -1,21 +1,21 @@
1
- .ws-page-sidebar .pf-c-nav {
2
- --pf-c-nav__link--before--BorderBottomWidth: 0;
3
- --pf-c-nav--m-light__link--hover--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
4
- --pf-c-nav--m-light__link--focus--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
5
- --pf-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
6
- --pf-c-nav--m-light__link--active--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
7
- --pf-c-nav__link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--200);
1
+ .ws-page-sidebar .pf-v5-c-nav {
2
+ --pf-v5-c-nav__link--before--BorderBottomWidth: 0;
3
+ --pf-v5-c-nav--m-light__link--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
4
+ --pf-v5-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
5
+ --pf-v5-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
6
+ --pf-v5-c-nav--m-light__link--active--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
7
+ --pf-v5-c-nav__link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
8
8
  }
9
9
 
10
- .ws-side-nav-list .pf-c-nav__item.pf-m-expandable::before {
10
+ .ws-side-nav-list .pf-v5-c-nav__item.pf-m-expandable::before {
11
11
  border-bottom: 0;
12
12
  }
13
13
 
14
- .pf-c-nav__subsection-title {
15
- color: var(--ws-toc-link--Color, var(--pf-global--Color--300));
16
- font-size: var(--pf-global--FontSize--sm);
14
+ .pf-v5-c-nav__subsection-title {
15
+ color: var(--ws-toc-link--Color, var(--pf-v5-global--Color--300));
16
+ font-size: var(--pf-v5-global--FontSize--sm);
17
17
  }
18
18
 
19
19
  #ws-sticky-nav-tabs {
20
- z-index: var(--pf-global--ZIndex--2xl);
20
+ z-index: var(--pf-v5-global--ZIndex--2xl);
21
21
  }
@@ -19,14 +19,14 @@ const NavItem = ({ text, href }) => {
19
19
  return (
20
20
  <PageContextConsumer key={href + text}>
21
21
  {({onNavToggle, isNavOpen }) => (
22
- <li key={href + text} className="pf-c-nav__item" onClick={() => isMobileView && onNavToggle()}>
22
+ <li key={href + text} className="pf-v5-c-nav__item" onClick={() => isMobileView && onNavToggle()}>
23
23
  <Link
24
24
  to={href}
25
25
  getProps={({ isCurrent, href, location }) => {
26
26
  const { pathname } = location;
27
27
  return {
28
28
  className: css(
29
- 'pf-c-nav__link',
29
+ 'pf-v5-c-nav__link',
30
30
  (isCurrent || pathname.startsWith(href + '/')) && 'pf-m-current'
31
31
  )
32
32
  }}
@@ -1,39 +1,39 @@
1
1
  .ws-toc {
2
2
  align-self: flex-start;
3
3
  position: sticky;
4
- width: calc(100% + var(--pf-c-page__main-section--PaddingLeft) + var(--pf-c-page__main-section--PaddingRight));
5
- background-color: var(--pf-global--BackgroundColor--200);
4
+ width: calc(100% + var(--pf-v5-c-page__main-section--PaddingLeft) + var(--pf-v5-c-page__main-section--PaddingRight));
5
+ background-color: var(--pf-v5-global--BackgroundColor--200);
6
6
  z-index: 501;
7
- margin: calc(var(--pf-c-page__main-section--PaddingTop) * -1) calc(var(--pf-c-page__main-section--PaddingRight) * -2) var(--pf-global--spacer--md) calc(var(--pf-c-page__main-section--PaddingLeft) * -1);
8
- padding: var(--pf-global--spacer--md) 0 var(--pf-global--spacer--md) var(--pf-global--spacer--md);
9
- box-shadow: var(--pf-global--BoxShadow--lg-bottom);
7
+ margin: calc(var(--pf-v5-c-page__main-section--PaddingTop) * -1) calc(var(--pf-v5-c-page__main-section--PaddingRight) * -2) var(--pf-v5-global--spacer--md) calc(var(--pf-v5-c-page__main-section--PaddingLeft) * -1);
8
+ padding: var(--pf-v5-global--spacer--md) 0 var(--pf-v5-global--spacer--md) var(--pf-v5-global--spacer--md);
9
+ box-shadow: var(--pf-v5-global--BoxShadow--lg-bottom);
10
10
  }
11
11
 
12
12
  .ws-toc.pf-m-expanded {
13
- box-shadow: var(--pf-global--BoxShadow--sm-bottom)
13
+ box-shadow: var(--pf-v5-global--BoxShadow--sm-bottom)
14
14
  }
15
15
 
16
16
  /* Mobile jumplinks */
17
17
  @media (max-width: 1450px) {
18
- .ws-toc.pf-m-expanded .pf-c-jump-links__main {
18
+ .ws-toc.pf-m-expanded .pf-v5-c-jump-links__main {
19
19
  max-height: 65vh;
20
20
  overflow: auto;
21
21
  }
22
22
 
23
- .ws-toc .pf-c-jump-links__header {
23
+ .ws-toc .pf-v5-c-jump-links__header {
24
24
  position: sticky;
25
25
  top: 0;
26
- background-color: var(--pf-global--BackgroundColor--200);
26
+ background-color: var(--pf-v5-global--BackgroundColor--200);
27
27
  z-index: 2;
28
28
  }
29
29
  }
30
30
 
31
- .ws-toc .pf-c-jump-links__main {
31
+ .ws-toc .pf-v5-c-jump-links__main {
32
32
  scrollbar-width: none;
33
33
  }
34
34
 
35
35
  /* Hide TOC scrollbar Chrome, Safari & Opera */
36
- .ws-toc .pf-c-jump-links__main::-webkit-scrollbar {
36
+ .ws-toc .pf-v5-c-jump-links__main::-webkit-scrollbar {
37
37
  display: none;
38
38
  }
39
39
 
@@ -46,7 +46,7 @@
46
46
  -ms-overflow-style: none;
47
47
  scrollbar-width: none;
48
48
  order: 1;
49
- padding: 0 var(--pf-global--spacer--lg) var(--pf-global--spacer--lg) var(--pf-global--spacer--2xl);
49
+ padding: 0 var(--pf-v5-global--spacer--lg) var(--pf-v5-global--spacer--lg) var(--pf-v5-global--spacer--2xl);
50
50
  flex-grow: 1;
51
51
  background: none;
52
52
  margin: 0;
@@ -59,18 +59,18 @@
59
59
  }
60
60
 
61
61
  /* .ws-toc-link { */
62
- .ws-toc-item .pf-c-jump-links__link {
62
+ .ws-toc-item .pf-v5-c-jump-links__link {
63
63
  position: relative;
64
64
  display: block;
65
- color: var(--ws-toc-link--Color, var(--pf-global--Color--300));
66
- font-size: var(--pf-global--FontSize--sm);
65
+ color: var(--ws-toc-link--Color, var(--pf-v5-global--Color--300));
66
+ font-size: var(--pf-v5-global--FontSize--sm);
67
67
  margin: -4px 0;
68
68
  }
69
69
 
70
- .ws-toc-sublist > .ws-toc-item:first-child .pf-c-jump-links__link {
70
+ .ws-toc-sublist > .ws-toc-item:first-child .pf-v5-c-jump-links__link {
71
71
  margin-top: 0;
72
72
  }
73
73
 
74
- .ws-toc-item.pf-m-current .pf-c-jump-links__link::before {
74
+ .ws-toc-item.pf-m-current .pf-v5-c-jump-links__link::before {
75
75
  z-index: 1;
76
76
  }