@patternfly/patternfly 4.159.0 → 4.160.1
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/README.md +2 -2
- package/RELEASE-NOTES.md +30 -0
- package/base/_globals.scss +0 -16
- package/base/patternfly-globals.css +0 -14
- package/components/Table/table.css +3 -3
- package/components/Table/table.scss +3 -3
- package/components/Toolbar/toolbar.css +4 -2
- package/components/Toolbar/toolbar.scss +6 -2
- package/docs/components/Select/examples/Select.md +12 -11
- package/docs/components/Table/examples/Table.md +2168 -76
- package/docs/demos/Button/examples/Button.md +176 -0
- package/docs/demos/Card/examples/Card.md +164 -112
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +79 -0
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +4 -4
- package/docs/demos/Table/examples/Table.md +3734 -95
- package/package.json +1 -1
- package/patternfly-base.css +0 -14
- package/patternfly-no-reset.css +7 -5
- package/patternfly.css +7 -19
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ To create 3 new demos named "Test demo", "Test demo 2", and "Test demo 3", run:
|
|
|
58
58
|
#### Update screenshots
|
|
59
59
|
When making visual changes to a full page example, new example preview screenshots must be generated. To update the screenshots:
|
|
60
60
|
|
|
61
|
-
- open a terminal and run `yarn build && yarn
|
|
61
|
+
- open a terminal and run `yarn build && yarn serve`
|
|
62
62
|
- in another terminal, run `yarn screenshots`
|
|
63
63
|
|
|
64
64
|
## Guidelines for CSS development
|
|
@@ -83,7 +83,7 @@ To run the a11y audit locally:
|
|
|
83
83
|
|
|
84
84
|
- install the latest [chromedriver](http://chromedriver.chromium.org/downloads) and ensure its available on your system `$PATH`
|
|
85
85
|
- macOS users can simply `brew cask install chromedriver`
|
|
86
|
-
- open a terminal and run `yarn build && yarn
|
|
86
|
+
- open a terminal and run `yarn build && yarn serve`
|
|
87
87
|
- in another terminal, run `yarn a11y`
|
|
88
88
|
|
|
89
89
|
The tool is configured to return WCAG 2.0 AA violations for the full page renderings of all components, layouts, utilities, and demos. The tool will provide feedback about what the violation is and a link to documentation about how to address the violation.
|
package/RELEASE-NOTES.md
CHANGED
|
@@ -4,6 +4,36 @@ section: developer-resources
|
|
|
4
4
|
releaseNoteTOC: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## 2021.15 release notes (2021-11-16)
|
|
8
|
+
Packages released:
|
|
9
|
+
- [@patternfly/patternfly@v4.159.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.159.1)
|
|
10
|
+
|
|
11
|
+
### Components
|
|
12
|
+
- **Card:** Added non-selectable card, updated card view demo ([#4500](https://github.com/patternfly/patternfly/pull/4500))
|
|
13
|
+
- **Dropdown:**
|
|
14
|
+
- Added secondary variant to dropdown ([#4498](https://github.com/patternfly/patternfly/pull/4498))
|
|
15
|
+
- Applied primary styling to split ([#4508](https://github.com/patternfly/patternfly/pull/4508))
|
|
16
|
+
- **Dual list selector:** Aligned html/a11y with react ([#4499](https://github.com/patternfly/patternfly/pull/4499))
|
|
17
|
+
- **Form select:** Matched padding with select ([#4490](https://github.com/patternfly/patternfly/pull/4490))
|
|
18
|
+
- **Log viewer:**
|
|
19
|
+
- Added nowrap variation ([#4455](https://github.com/patternfly/patternfly/pull/4455))
|
|
20
|
+
- Updated the way dark theme is applied ([#4506](https://github.com/patternfly/patternfly/pull/4506))
|
|
21
|
+
- **Menu toggle:**
|
|
22
|
+
- Added plain w/text variant ([#4491](https://github.com/patternfly/patternfly/pull/4491))
|
|
23
|
+
- Added rounded corners to primary ([#4494](https://github.com/patternfly/patternfly/pull/4494))
|
|
24
|
+
- **Menu:** Added nav variant ([#4513](https://github.com/patternfly/patternfly/pull/4513))
|
|
25
|
+
- **Nav:**
|
|
26
|
+
- Added drilldown menu to nav ([#4458](https://github.com/patternfly/patternfly/pull/4458))
|
|
27
|
+
- Fixed toggle icon rotation ([#4486](https://github.com/patternfly/patternfly/pull/4486))
|
|
28
|
+
- **Options menu:** Moved text into button in plain text variant ([#4492](https://github.com/patternfly/patternfly/pull/4492))
|
|
29
|
+
- **Table:** Fixed pf-m-truncate alignment ([#4489](https://github.com/patternfly/patternfly/pull/4489))
|
|
30
|
+
- **TextInputGroup:** Added disabled styling ([#4484](https://github.com/patternfly/patternfly/pull/4484))
|
|
31
|
+
- **Tooltip:** Added support for diagonal positioning ([#4470](https://github.com/patternfly/patternfly/pull/4470))
|
|
32
|
+
|
|
33
|
+
### Other
|
|
34
|
+
- **README:** Updated a11y docs, s/npm run/yarn ([#4496](https://github.com/patternfly/patternfly/pull/4496))
|
|
35
|
+
|
|
36
|
+
|
|
7
37
|
## 2021.14 release notes (2021-10-26)
|
|
8
38
|
Packages released:
|
|
9
39
|
- [@patternfly/patternfly@v4.151.4](https://www.npmjs.com/package/@patternfly/patternfly/v/4.151.4)
|
package/base/_globals.scss
CHANGED
|
@@ -127,22 +127,6 @@
|
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
button,
|
|
131
|
-
[type="button"],
|
|
132
|
-
[type="reset"],
|
|
133
|
-
[type="submit"] {
|
|
134
|
-
// Remove the inner border and padding in Firefox.
|
|
135
|
-
&::-moz-focus-inner {
|
|
136
|
-
padding: 0;
|
|
137
|
-
border-style: none;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Restore the focus styles unset by the previous rule.
|
|
141
|
-
&:-moz-focusring {
|
|
142
|
-
outline: 1px dotted ButtonText;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
130
|
@include pf-m-overpass-font {
|
|
147
131
|
a {
|
|
148
132
|
font-weight: var(--pf-global--FontWeight--semi-bold);
|
|
@@ -116,20 +116,6 @@ a {
|
|
|
116
116
|
cursor: pointer;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
button::-moz-focus-inner,
|
|
120
|
-
[type=button]::-moz-focus-inner,
|
|
121
|
-
[type=reset]::-moz-focus-inner,
|
|
122
|
-
[type=submit]::-moz-focus-inner {
|
|
123
|
-
padding: 0;
|
|
124
|
-
border-style: none;
|
|
125
|
-
}
|
|
126
|
-
button:-moz-focusring,
|
|
127
|
-
[type=button]:-moz-focusring,
|
|
128
|
-
[type=reset]:-moz-focusring,
|
|
129
|
-
[type=submit]:-moz-focusring {
|
|
130
|
-
outline: 1px dotted ButtonText;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
119
|
.pf-m-overpass-font a {
|
|
134
120
|
font-weight: var(--pf-global--FontWeight--semi-bold);
|
|
135
121
|
}
|
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
--pf-c-table--m-compact__expandable-row-content--PaddingRight: var(--pf-global--spacer--lg);
|
|
228
228
|
--pf-c-table--m-compact__expandable-row-content--PaddingBottom: var(--pf-global--spacer--lg);
|
|
229
229
|
--pf-c-table--m-compact__expandable-row-content--PaddingLeft: var(--pf-global--spacer--lg);
|
|
230
|
-
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-
|
|
231
|
-
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-
|
|
230
|
+
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-c-table--m-compact--cell--first-last-child--PaddingLeft);
|
|
231
|
+
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-c-table--m-compact--cell--first-last-child--PaddingRight);
|
|
232
232
|
--pf-c-table__expandable-row--m-expanded--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
233
233
|
--pf-c-table--tr--m-hoverable--BoxShadow--top: var(--pf-c-table--tr--BoxShadow--top--base);
|
|
234
234
|
--pf-c-table--tr--m-hoverable--BackgroundColor: transparent;
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
.pf-c-table__check {
|
|
717
717
|
--pf-c-table--cell--FontSize: var(--pf-c-table__check--input--FontSize);
|
|
718
718
|
}
|
|
719
|
-
.pf-c-table__check > input {
|
|
719
|
+
.pf-c-table__check > input:not([disabled]) {
|
|
720
720
|
cursor: pointer;
|
|
721
721
|
}
|
|
722
722
|
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
--pf-c-table--m-compact__expandable-row-content--PaddingLeft: var(--pf-global--spacer--lg);
|
|
241
241
|
|
|
242
242
|
// Nested table
|
|
243
|
-
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-
|
|
244
|
-
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-
|
|
243
|
+
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-c-table--m-compact--cell--first-last-child--PaddingLeft);
|
|
244
|
+
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-c-table--m-compact--cell--first-last-child--PaddingRight);
|
|
245
245
|
|
|
246
246
|
// Modifier - expandable row expanded
|
|
247
247
|
--pf-c-table__expandable-row--m-expanded--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
.pf-c-table__check {
|
|
903
903
|
--pf-c-table--cell--FontSize: var(--pf-c-table__check--input--FontSize);
|
|
904
904
|
|
|
905
|
-
> input {
|
|
905
|
+
> input:not([disabled]) {
|
|
906
906
|
cursor: pointer;
|
|
907
907
|
}
|
|
908
908
|
}
|
|
@@ -112,6 +112,8 @@
|
|
|
112
112
|
--pf-c-toolbar__item--m-chip-group--spacer: var(--pf-global--spacer--sm);
|
|
113
113
|
--pf-c-toolbar__item--m-label--spacer: var(--pf-c-toolbar__item--spacer);
|
|
114
114
|
--pf-c-toolbar__item--m-label--FontWeight: var(--pf-global--FontWeight--bold);
|
|
115
|
+
--pf-c-toolbar__expandable-content__item--m-label--MarginBottom: calc(-1 * var(--pf-c-toolbar__expandable-content--m-expanded--GridRowGap) + var(--pf-global--spacer--sm));
|
|
116
|
+
--pf-c-toolbar__expandable-content__item--m-label--FontSize: var(--pf-global--FontSize--sm);
|
|
115
117
|
--pf-c-toolbar__toggle--m-expanded__c-button--m-plain--Color: var(--pf-global--Color--100);
|
|
116
118
|
--pf-c-toolbar--c-divider--m-vertical--spacer: var(--pf-c-toolbar--spacer--base);
|
|
117
119
|
--pf-c-toolbar--m-full-height--PaddingTop: 0;
|
|
@@ -379,8 +381,8 @@
|
|
|
379
381
|
grid-row-gap: var(--pf-c-toolbar__expandable-content--m-expanded--GridRowGap);
|
|
380
382
|
}
|
|
381
383
|
.pf-c-toolbar__expandable-content .pf-m-label {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
+
margin-bottom: var(--pf-c-toolbar__expandable-content__item--m-label--MarginBottom);
|
|
385
|
+
font-size: var(--pf-c-toolbar__expandable-content__item--m-label--FontSize);
|
|
384
386
|
}
|
|
385
387
|
|
|
386
388
|
.pf-c-toolbar__content.pf-m-chip-container,
|
|
@@ -99,6 +99,10 @@ $pf-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl"
|
|
|
99
99
|
--pf-c-toolbar__item--m-label--spacer: var(--pf-c-toolbar__item--spacer);
|
|
100
100
|
--pf-c-toolbar__item--m-label--FontWeight: var(--pf-global--FontWeight--bold);
|
|
101
101
|
|
|
102
|
+
// Label in expanded content
|
|
103
|
+
--pf-c-toolbar__expandable-content__item--m-label--MarginBottom: calc(-1 * var(--pf-c-toolbar__expandable-content--m-expanded--GridRowGap) + var(--pf-global--spacer--sm));
|
|
104
|
+
--pf-c-toolbar__expandable-content__item--m-label--FontSize: var(--pf-global--FontSize--sm);
|
|
105
|
+
|
|
102
106
|
// Toggle
|
|
103
107
|
--pf-c-toolbar__toggle--m-expanded__c-button--m-plain--Color: var(--pf-global--Color--100);
|
|
104
108
|
|
|
@@ -382,8 +386,8 @@ $pf-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl"
|
|
|
382
386
|
}
|
|
383
387
|
|
|
384
388
|
.pf-m-label {
|
|
385
|
-
|
|
386
|
-
|
|
389
|
+
margin-bottom: var(--pf-c-toolbar__expandable-content__item--m-label--MarginBottom);
|
|
390
|
+
font-size: var(--pf-c-toolbar__expandable-content__item--m-label--FontSize);
|
|
387
391
|
}
|
|
388
392
|
}
|
|
389
393
|
|
|
@@ -235,17 +235,18 @@ The single select should be used when the user is selecting an option from a lis
|
|
|
235
235
|
|
|
236
236
|
### Usage
|
|
237
237
|
|
|
238
|
-
| Class | Applied to
|
|
239
|
-
| ------------------------------ |
|
|
240
|
-
| `.pf-c-select` | `<div>`
|
|
241
|
-
| `.pf-c-select__toggle` | `<button>`
|
|
242
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
243
|
-
| `.pf-c-select__toggle-arrow` | `<span>`
|
|
244
|
-
| `.pf-c-select__menu` | `<ul>`
|
|
245
|
-
| `.pf-c-select__menu-item` | `<li>`
|
|
246
|
-
| `.pf-c-select__menu-item-icon` | `<i>`
|
|
247
|
-
| `.pf-m-top` | `.pf-c-select`
|
|
248
|
-
| `.pf-m-
|
|
238
|
+
| Class | Applied to | Outcome |
|
|
239
|
+
| ------------------------------ | -------------------- | ---------------------------------------------------------------- |
|
|
240
|
+
| `.pf-c-select` | `<div>` | Initiates a custom select. |
|
|
241
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates a custom toggle. |
|
|
242
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates a custom select toggle wrapper. |
|
|
243
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
244
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the custom select dropdown menu. |
|
|
245
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the custom select dropdown menu. |
|
|
246
|
+
| `.pf-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
|
|
247
|
+
| `.pf-m-top` | `.pf-c-select` | Modifies the select menu to display above the toggle. |
|
|
248
|
+
| `.pf-m-align-right` | `.pf-c-select__menu` | Modifies the select menu to display right aligned to the toggle. |
|
|
249
|
+
| `.pf-m-active` | `.pf-c-select` | Forces display of the active state of the toggle. |
|
|
249
250
|
|
|
250
251
|
## States
|
|
251
252
|
|