@patternfly/documentation-framework 2.0.0-alpha.44 → 2.0.0-alpha.46

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
+ # 2.0.0-alpha.46 (2023-05-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **CSSVariables:** resolve a11y issues in tables ([41a7837](https://github.com/patternfly/patternfly-org/commit/41a78379de36c08d7b36fe48a9ff40a4140cdc63))
12
+
13
+
14
+
15
+
16
+
17
+ # 2.0.0-alpha.45 (2023-05-25)
18
+
19
+ **Note:** Version bump only for package @patternfly/documentation-framework
20
+
21
+
22
+
23
+
24
+
6
25
  # 2.0.0-alpha.44 (2023-05-25)
7
26
 
8
27
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -178,11 +178,7 @@ export class CSSVariables extends React.Component {
178
178
  <Tr>
179
179
  {!this.props.hideSelectorColumn && (
180
180
  <React.Fragment>
181
- <Th expand={{
182
- areAllExpanded: this.state.allRowsExpanded,
183
- collapseAllAriaLabel: "Expand or collapse all CSS variables",
184
- onToggle: this.onCollapse
185
- }}/>
181
+ <Th />
186
182
  <Th>Selector</Th>
187
183
  </React.Fragment>
188
184
  )}
@@ -201,7 +197,7 @@ export class CSSVariables extends React.Component {
201
197
  rowIndex,
202
198
  isExpanded: row.isOpen,
203
199
  onToggle: this.onCollapse,
204
- expandId: 'css-vars-expandable-toggle'
200
+ expandId: `css-vars-expandable-toggle-${this.props.prefix}`
205
201
  }
206
202
  : undefined
207
203
  }
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.44",
4
+ "version": "2.0.0-alpha.46",
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": "eea3ab5ab5fb2eebf30ebda97b41739ae3ddf60e"
94
+ "gitHead": "c544648774dac6e2b88fb3a107cf05259b9573e8"
95
95
  }
@@ -1,40 +0,0 @@
1
- ---
2
- id: Red Hat font
3
- section: developer-resources
4
- ---
5
-
6
- PR - [https://github.com/patternfly/patternfly/pull/4476](https://github.com/patternfly/patternfly/pull/4476)
7
-
8
- Available in [v4.161.0](https://github.com/patternfly/patternfly/releases/tag/prerelease-v4.161.0)
9
-
10
- ## Overview
11
-
12
- PatternFly has created opt-ins for `v4.0.2` of the [RedHatFont](https://github.com/RedHatOfficial/RedHatFont/). This is an update from `v2.x`. There are many new features in this update, including:
13
-
14
- - Variable fonts
15
- - New weights in Red Hat Display and Red Hat Text
16
- - Tabular figures (monospaced numbers) in Red Hat Display and Red Hat Text
17
- - Red Hat Mono typeface
18
- - Dropping support for IE11 (dropped the `.woff` format)
19
-
20
- ### Available Opt-ins
21
-
22
- #### `.pf-m-redhat-updated-font`
23
-
24
- Updates the Red Hat Text and Red Hat Display font stacks to `v4.0.2`. This should be a safe, seamless opt-in, with small improvements to glyph shape, kerning, metadata across the entire family of fonts. Potential concerns may be that this will remove support for IE11 by removing the `.woff` format support, and small layout shifts as result of the small improvements.
25
-
26
- #### `.pf-m-redhatmono-font`
27
-
28
- Updates the monospaced font stack to use the Red Hat Mono font. This opt-in can be combined with `.pf-m-redhat-updated-font`.
29
-
30
- #### `.pf-m-redhatVF-font`
31
-
32
- Updates the Red Hat Text, Red Hat Display, and Red Hat Mono font stacks to use the variable font files.
33
-
34
- #### `.pf-m-tabular-nums`
35
-
36
- This is a global class that can be applied to any element to enable monospaced numbers on that element and its children.
37
-
38
- ### Using opt-in classes
39
-
40
- To opt-in to any of the new fonts (`.pf-m-redhat-updated-font`, `.pf-m-redhatmono-font`, and `.pf-m-redhatVF-font`), add the opt-in class to the `<body>` tag of your application. To opt-in to monospaced numbers globally across your application, apply `.pf-m-tabular-nums` to any element that wraps your entire application (eg, `<body>`, `<div id="root">`, `<div class="pf-v5-c-page">`, etc). To opt-in to monospaced numbers on a particular element and its children, add the class to that element itself.