@patternfly/documentation-framework 2.0.0-alpha.59 → 2.0.0-alpha.60

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
+ # 2.0.0-alpha.60 (2023-06-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs:** fixed gallery styles affecting width, font vars ([#3596](https://github.com/patternfly/patternfly-org/issues/3596)) ([04f1b54](https://github.com/patternfly/patternfly-org/commit/04f1b54f947e1afca88926d8f371d3bf37a70e25))
12
+
13
+
14
+
15
+
16
+
6
17
  # 2.0.0-alpha.59 (2023-06-13)
7
18
 
8
19
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -1,5 +1,9 @@
1
- .ws-mdx-content-content {
2
- max-width: initial !important;
1
+ .ws-landing-page > * {
2
+ max-width: 832px;
3
+ }
4
+
5
+ .ws-landing-page > .ws-section-gallery-full-width {
6
+ max-width: initial;
3
7
  }
4
8
 
5
9
  .ws-section-gallery {
@@ -18,6 +18,7 @@ import { SectionGalleryWrapper } from "./sectionGalleryWrapper";
18
18
  * @param {Boolean} [hasGridImages=false] - Optional boolean to toggle images on grid layout cards
19
19
  * @param {Boolean} [hasListText=false] - Optional boolean to toggle text on list layout rows
20
20
  * @param {Boolean} [hasListImages=false] - Optional boolean to toggle images on list layout rows
21
+ * @param {Boolean} [isFullWidth=true] - Optional boolean to disable component from exceeding default max-width for page
21
22
  */
22
23
 
23
24
  export const SectionGallery = ({
@@ -33,7 +34,8 @@ export const SectionGallery = ({
33
34
  hasGridText = false,
34
35
  hasGridImages = true,
35
36
  hasListText = true,
36
- hasListImages = true
37
+ hasListImages = true,
38
+ isFullWidth = true
37
39
  }) => (
38
40
  <SectionGalleryWrapper
39
41
  illustrations={illustrations}
@@ -43,6 +45,7 @@ export const SectionGallery = ({
43
45
  parseSubsections={parseSubsections}
44
46
  galleryItemsData={galleryItemsData}
45
47
  initialLayout={initialLayout}
48
+ isFullWidth={isFullWidth}
46
49
  >
47
50
  {(sectionGalleryItems, searchTerm, setSearchTerm, layoutView, setLayoutView) => (
48
51
  <>
@@ -9,6 +9,7 @@ export const SectionGalleryWrapper = ({
9
9
  includeSubsections,
10
10
  parseSubsections,
11
11
  initialLayout,
12
+ isFullWidth,
12
13
  children
13
14
  }) => {
14
15
  let sectionRoutes = subsection ? groupedRoutes[section][subsection] : groupedRoutes[section];
@@ -97,7 +98,7 @@ export const SectionGalleryWrapper = ({
97
98
  });
98
99
 
99
100
  return (
100
- <div className="ws-section-gallery">
101
+ <div className={`ws-section-gallery${ isFullWidth ? ' ws-section-gallery-full-width' : '' }`}>
101
102
  { children(sectionGalleryItems, searchTerm, setSearchTerm, layoutView, setLayoutView) }
102
103
  </div>
103
104
  )
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": "2.0.0-alpha.59",
4
+ "version": "2.0.0-alpha.60",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -91,5 +91,5 @@
91
91
  "react": "^17.0.0 || ^18.0.0",
92
92
  "react-dom": "^17.0.0 || ^18.0.0"
93
93
  },
94
- "gitHead": "5489a99b936694792ca284ea7db71f589dae729c"
94
+ "gitHead": "d4c33a6c2320dd6684acbd6423fa69298f3eef6b"
95
95
  }
package/templates/mdx.js CHANGED
@@ -83,7 +83,7 @@ const MDXChildTemplate = ({
83
83
  <TableOfContents items={toc} />
84
84
  )}
85
85
  <div className="ws-mdx-content">
86
- <div className={id === 'All components' ? "" : "ws-mdx-content-content"}>
86
+ <div className={source === 'landing-pages' ? "ws-landing-page" : "ws-mdx-content-content"}>
87
87
  {InlineAlerts}
88
88
  <Component />
89
89
  {functionDocumentation.length > 0 && (