@patternfly/patternfly 4.164.1 → 4.165.0

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/RELEASE-NOTES.md CHANGED
@@ -4,6 +4,37 @@ section: developer-resources
4
4
  releaseNoteTOC: true
5
5
  ---
6
6
 
7
+ ## 2021.16 release notes (2021-12-07)
8
+ Packages released:
9
+ - [@patternfly/patternfly@v4.164.2](https://www.npmjs.com/package/@patternfly/patternfly/v/4.164.2)
10
+
11
+ ### Components
12
+ - **Button:** Added demo for progress button completion state ([#4528](https://github.com/patternfly/patternfly/pull/4528))
13
+ - **Card:** Replaced dropdowns with selects in demos ([#4520](https://github.com/patternfly/patternfly/pull/4520))
14
+ - **Description list:** Added columnar layout ([#4544](https://github.com/patternfly/patternfly/pull/4544))
15
+ - **Dropdown:**
16
+ - Added plain text variant ([#4542](https://github.com/patternfly/patternfly/pull/4542))
17
+ - Added disabled styles ([#4543](https://github.com/patternfly/patternfly/pull/4543))
18
+ - **Form:** Added support for horizontal layout at various breakpoints ([#4536](https://github.com/patternfly/patternfly/pull/4536))
19
+ - **Multiple file upload:** Added component ([#4548](https://github.com/patternfly/patternfly/pull/4548))
20
+ - **Table:**
21
+ - Removed cursor pointer on disabled checkboxes ([#4527](https://github.com/patternfly/patternfly/pull/4527))
22
+ - Removed extra padding from nested table cells ([#4529](https://github.com/patternfly/patternfly/pull/4529))
23
+ - Reorganized documentation ([#4539](https://github.com/patternfly/patternfly/pull/4539))
24
+ - Increased target area of checkboxes/radios ([#4546](https://github.com/patternfly/patternfly/pull/4546))
25
+ - **Toolbar:** Set labels to show in collapsed state ([#4451](https://github.com/patternfly/patternfly/pull/4451))
26
+ - **Truncate:**
27
+ - Added truncate component ([#4502](https://github.com/patternfly/patternfly/pull/4502))
28
+ - Fixed font size var value ([#4560](https://github.com/patternfly/patternfly/pull/4560))
29
+
30
+ ### Other
31
+ - **Build:**
32
+ - Added a11y coverage report action ([#4530](https://github.com/patternfly/patternfly/pull/4530))
33
+ - Updated stylelint, deps ([#4537](https://github.com/patternfly/patternfly/pull/4537))
34
+ - **Demos:** Added a password generator demo ([#4531](https://github.com/patternfly/patternfly/pull/4531))
35
+ - **Fonts:** Added opt-ins for new red hat font ([#4476](https://github.com/patternfly/patternfly/pull/4476))
36
+ - **Global:** Removed custom firefox focus styles ([#4533](https://github.com/patternfly/patternfly/pull/4533))
37
+
7
38
  ## 2021.15 release notes (2021-11-16)
8
39
  Packages released:
9
40
  - [@patternfly/patternfly@v4.159.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.159.1)
@@ -8,6 +8,7 @@
8
8
  --pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
9
9
  --pf-c-expandable-section__toggle--focus--Color: var(--pf-global--link--Color--hover);
10
10
  --pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
11
+ --pf-c-expandable-section__toggle-icon--MinWidth: 1em;
11
12
  --pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
12
13
  --pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
13
14
  --pf-c-expandable-section__toggle-icon--Rotate: 0;
@@ -30,6 +31,7 @@
30
31
  --pf-c-expandable-section--m-display-lg--after--BackgroundColor: transparent;
31
32
  --pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
32
33
  --pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
34
+ --pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
33
35
  }
34
36
  .pf-c-expandable-section.pf-m-expanded {
35
37
  --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
@@ -64,6 +66,9 @@
64
66
  content: "";
65
67
  background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
66
68
  }
69
+ .pf-c-expandable-section.pf-m-indented {
70
+ --pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
71
+ }
67
72
 
68
73
  .pf-c-expandable-section__toggle {
69
74
  display: flex;
@@ -82,6 +87,7 @@
82
87
  }
83
88
 
84
89
  .pf-c-expandable-section__toggle-icon {
90
+ min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
85
91
  color: var(--pf-c-expandable-section__toggle-icon--Color);
86
92
  transition: var(--pf-c-expandable-section__toggle-icon--Transition);
87
93
  transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
@@ -11,6 +11,7 @@
11
11
  --pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
12
12
 
13
13
  // Toggle icon
14
+ --pf-c-expandable-section__toggle-icon--MinWidth: 1em;
14
15
  --pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
15
16
  --pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
16
17
  --pf-c-expandable-section__toggle-icon--Rotate: 0;
@@ -42,6 +43,9 @@
42
43
  --pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
43
44
  --pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
44
45
 
46
+ // Indented
47
+ --pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
48
+
45
49
 
46
50
  &.pf-m-expanded {
47
51
  --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
@@ -81,6 +85,10 @@
81
85
  background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
82
86
  }
83
87
  }
88
+
89
+ &.pf-m-indented {
90
+ --pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
91
+ }
84
92
  }
85
93
 
86
94
  .pf-c-expandable-section__toggle {
@@ -104,6 +112,7 @@
104
112
  }
105
113
 
106
114
  .pf-c-expandable-section__toggle-icon {
115
+ min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
107
116
  color: var(--pf-c-expandable-section__toggle-icon--Color);
108
117
  transition: var(--pf-c-expandable-section__toggle-icon--Transition);
109
118
  transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
@@ -93,6 +93,7 @@
93
93
  --pf-c-label--m-compact--PaddingBottom: 0;
94
94
  --pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
95
95
  --pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
96
+ --pf-c-label--m-compact--m-editable--TextDecorationOffset: 0.0625rem;
96
97
  --pf-c-label__content--Color: var(--pf-global--Color--100);
97
98
  --pf-c-label--m-outline__content--Color: var(--pf-global--Color--100);
98
99
  --pf-c-label__text--MaxWidth: 16ch;
@@ -107,6 +108,18 @@
107
108
  --pf-c-label__c-button--PaddingRight: var(--pf-global--spacer--sm);
108
109
  --pf-c-label__c-button--PaddingBottom: var(--pf-global--spacer--xs);
109
110
  --pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
111
+ --pf-c-label__editable-text--MaxWidth: 16ch;
112
+ --pf-c-label__editable-text--BorderWidth: 0;
113
+ --pf-c-label--m-editable--Cursor: pointer;
114
+ --pf-c-label--m-editable--TextDecoration: underline;
115
+ --pf-c-label--m-editable--TextDecorationStyle: dashed;
116
+ --pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
117
+ --pf-c-label--m-editable--TextDecorationOffset: 0.25rem;
118
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
119
+ --pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
120
+ --pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
121
+ --pf-c-label--m-editable--m-editable-active--Cursor: auto;
122
+ --pf-c-label--m-editable--m-editable-active--TextDecoration: none;
110
123
  --pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
111
124
  --pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
112
125
  --pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
@@ -125,6 +138,7 @@
125
138
  --pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
126
139
  --pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
127
140
  --pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
141
+ --pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
128
142
  }
129
143
  .pf-c-label.pf-m-blue {
130
144
  --pf-c-label--BackgroundColor: var(--pf-c-label--m-blue--BackgroundColor);
@@ -215,7 +229,23 @@
215
229
  --pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
216
230
  }
217
231
 
232
+ .pf-c-label.pf-m-editable {
233
+ text-decoration: var(--pf-c-label--m-editable--TextDecoration);
234
+ cursor: var(--pf-c-label--m-editable--Cursor);
235
+ text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
236
+ text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
237
+ text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
238
+ text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
239
+ }
240
+ .pf-c-label.pf-m-editable:hover {
241
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
242
+ }
243
+ .pf-c-label.pf-m-editable:focus {
244
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
245
+ }
218
246
  .pf-c-label.pf-m-editable-active {
247
+ --pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
248
+ --pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
219
249
  --pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
220
250
  --pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
221
251
  --pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
@@ -223,6 +253,13 @@
223
253
  .pf-c-label.pf-m-editable-active .pf-c-button {
224
254
  visibility: hidden;
225
255
  }
256
+ .pf-c-label .pf-c-label__editable-text {
257
+ overflow: hidden;
258
+ text-overflow: ellipsis;
259
+ white-space: nowrap;
260
+ max-width: var(--pf-c-label__editable-text--MaxWidth);
261
+ border-width: var(--pf-c-label__editable-text--BorderWidth);
262
+ }
226
263
  .pf-c-label .pf-c-button {
227
264
  --pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
228
265
  --pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
@@ -118,6 +118,7 @@
118
118
  --pf-c-label--m-compact--PaddingBottom: 0;
119
119
  --pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
120
120
  --pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
121
+ --pf-c-label--m-compact--m-editable--TextDecorationOffset: #{pf-size-prem(1px)};
121
122
 
122
123
  // Content
123
124
  --pf-c-label__content--Color: var(--pf-global--Color--100);
@@ -142,6 +143,21 @@
142
143
  --pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
143
144
 
144
145
  // Editable
146
+ --pf-c-label__editable-text--MaxWidth: 16ch;
147
+ --pf-c-label__editable-text--BorderWidth: 0;
148
+ --pf-c-label--m-editable--Cursor: pointer;
149
+ --pf-c-label--m-editable--TextDecoration: underline;
150
+ --pf-c-label--m-editable--TextDecorationStyle: dashed;
151
+ --pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
152
+ --pf-c-label--m-editable--TextDecorationOffset: #{pf-size-prem(4px)};
153
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
154
+ --pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
155
+ --pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
156
+
157
+
158
+ // Editable active
159
+ --pf-c-label--m-editable--m-editable-active--Cursor: auto;
160
+ --pf-c-label--m-editable--m-editable-active--TextDecoration: none;
145
161
  --pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
146
162
  --pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
147
163
  --pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
@@ -161,6 +177,7 @@
161
177
  --pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
162
178
  --pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
163
179
  --pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
180
+ --pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
164
181
  }
165
182
 
166
183
  &.pf-m-blue {
@@ -267,7 +284,26 @@
267
284
  }
268
285
  }
269
286
 
287
+ &.pf-m-editable {
288
+ text-decoration: var(--pf-c-label--m-editable--TextDecoration);
289
+ cursor: var(--pf-c-label--m-editable--Cursor);
290
+ text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
291
+ text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
292
+ text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
293
+ text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
294
+
295
+ &:hover {
296
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
297
+ }
298
+
299
+ &:focus {
300
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
301
+ }
302
+ }
303
+
270
304
  &.pf-m-editable-active {
305
+ --pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
306
+ --pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
271
307
  --pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
272
308
  --pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
273
309
  --pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
@@ -277,6 +313,13 @@
277
313
  }
278
314
  }
279
315
 
316
+ .pf-c-label__editable-text {
317
+ @include pf-text-overflow;
318
+
319
+ max-width: var(--pf-c-label__editable-text--MaxWidth);
320
+ border-width: var(--pf-c-label__editable-text--BorderWidth);
321
+ }
322
+
280
323
  .pf-c-button {
281
324
  --pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
282
325
  --pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
@@ -124,6 +124,27 @@ cssPrefix: pf-c-expandable-section
124
124
 
125
125
  ```
126
126
 
127
+ ### Indented
128
+
129
+ ```html
130
+ <div class="pf-c-expandable-section pf-m-expanded pf-m-indented">
131
+ <button
132
+ type="button"
133
+ class="pf-c-expandable-section__toggle"
134
+ aria-expanded="true"
135
+ >
136
+ <span class="pf-c-expandable-section__toggle-icon">
137
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
138
+ </span>
139
+ <span class="pf-c-expandable-section__toggle-text">Show less</span>
140
+ </button>
141
+ <div
142
+ class="pf-c-expandable-section__content"
143
+ >This content is visible only when the component is expanded.</div>
144
+ </div>
145
+
146
+ ```
147
+
127
148
  ## Documentation
128
149
 
129
150
  ### Accessibility
@@ -149,5 +170,6 @@ cssPrefix: pf-c-expandable-section
149
170
  | `.pf-m-expanded` | `.pf-c-expandable-section` | Modifies the component for the expanded state. |
150
171
  | `.pf-m-display-lg` | `.pf-c-expandable-section` | Modifies the styling of the component to have large display styling. |
151
172
  | `.pf-m-detached` | `.pf-c-expandable-section` | Indicates that the expandable section toggle and content are detached from one another, so you can move them around independently in the markup. |
173
+ | `.pf-m-indented` | `.pf-c-expandable-section` | Indicates that the expandable section content is indented and is aligned with the start of the title text to provide visual hierarchy. |
152
174
  | `.pf-m-active` | `.pf-c-expandable-section__toggle` | Forces display of the active state of the toggle. |
153
175
  | `.pf-m-expand-top` | `.pf-c-expandable-section__toggle-icon` | Modifies the toggle icon to point up when expanded. |