@patternfly/documentation-framework 1.2.48 → 1.2.50

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
+ ## 1.2.50 (2022-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **components:** width limit the description section ([#3237](https://github.com/patternfly/patternfly-org/issues/3237)) ([3080e84](https://github.com/patternfly/patternfly-org/commit/3080e8440acb7cec49f24c44160c48a9aa4caff7))
12
+
13
+
14
+
15
+
16
+
17
+ ## 1.2.49 (2022-10-26)
18
+
19
+ **Note:** Version bump only for package @patternfly/documentation-framework
20
+
21
+
22
+
23
+
24
+
6
25
  ## 1.2.48 (2022-10-25)
7
26
 
8
27
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -2,8 +2,10 @@
2
2
  font-family: "RedHatText";
3
3
  font-weight: 300;
4
4
  background-color: #1a1a1a !important;
5
- padding: 48px;
6
- padding-top: 32px;
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);
7
9
  /* Hide long overflowing tocs */
8
10
  z-index: 1;
9
11
  }
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": "1.2.48",
4
+ "version": "1.2.50",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -85,5 +85,5 @@
85
85
  "react": "^16.8.0 || ^17.0.0",
86
86
  "react-dom": "^16.8.0 || ^17.0.0"
87
87
  },
88
- "gitHead": "f5f1b8934144adb264b88e5be51e84aecce0a8b5"
88
+ "gitHead": "ccd7ef53f816e8cc91afdd33cfc9e09cd7f6ed92"
89
89
  }
package/templates/mdx.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PageSection, Title, PageSectionVariants, BackToTop, PageGroup, Page } from '@patternfly/react-core';
2
+ import { PageSection, Title, PageSectionVariants, BackToTop, PageGroup, Page, Text, TextContent } from '@patternfly/react-core';
3
3
  import { css } from '@patternfly/react-styles';
4
4
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
5
5
  import { Router, useLocation } from '@reach/router';
@@ -151,16 +151,13 @@ export const MDXTemplate = ({
151
151
  <PageSection
152
152
  className={isSinglePage ? "pf-m-light-100" : ""}
153
153
  variant={!isSinglePage ? PageSectionVariants.light : ""}
154
+ isWidthLimited
154
155
  >
155
- {!katacodaLayout && <Title size="4xl" headingLevel="h1" id="ws-page-title">
156
- {title}
157
- </Title>}
156
+ <TextContent>
157
+ {!katacodaLayout && <Title headingLevel='h1' size='4xl' id="ws-page-title">{title}</Title>}
158
+ {isComponent && summary && (<SummaryComponent />)}
159
+ </TextContent>
158
160
  </PageSection>
159
- {isComponent && summary && (
160
- <PageSection variant={PageSectionVariants.light} className="pf-u-pt-0">
161
- <SummaryComponent />
162
- </PageSection>
163
- )}
164
161
  {(!isSinglePage || isComponent) && (
165
162
  <PageSection id="ws-sticky-nav-tabs" stickyOnBreakpoint={{'default':'top'}} type="tabs">
166
163
  <div className="pf-c-tabs pf-m-page-insets pf-m-no-border-bottom">