@patternfly/patternfly 4.191.0 → 4.192.2
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 +26 -0
- package/components/Divider/divider.css +159 -13
- package/components/Divider/divider.scss +74 -28
- package/components/TextInputGroup/text-input-group.css +5 -0
- package/components/TextInputGroup/text-input-group.scss +6 -0
- package/components/TreeView/tree-view.css +2 -0
- package/components/TreeView/tree-view.scss +2 -0
- package/docs/components/Divider/examples/Divider.css +11 -5
- package/docs/components/Divider/examples/Divider.md +14 -0
- package/docs/components/InputGroup/examples/InputGroup.md +5 -5
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +23 -0
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +617 -1
- package/docs/demos/Dashboard/examples/Dashboard.md +2 -2
- package/package.json +2 -2
- package/patternfly-no-reset.css +166 -13
- package/patternfly.css +166 -13
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -3,6 +3,32 @@ id: Release notes
|
|
|
3
3
|
section: developer-resources
|
|
4
4
|
releaseNoteTOC: true
|
|
5
5
|
---
|
|
6
|
+
## 2022.05 release notes (2022-04-20)
|
|
7
|
+
Packages released:
|
|
8
|
+
- [@patternfly/patternfly@v4.192.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.192.1)
|
|
9
|
+
|
|
10
|
+
### Components
|
|
11
|
+
- **Card:** Fixed stacking context issue with selectable raised cards ([#4780](https://github.com/patternfly/patternfly/pull/4780))
|
|
12
|
+
- **Data list:** Updated expandable demo to include expand/collapse all in toolbar ([#4784](https://github.com/patternfly/patternfly/pull/4784))
|
|
13
|
+
- **Divider:** Added horizontal/vertical breakpoint support to divider ([#4765](https://github.com/patternfly/patternfly/pull/4765))
|
|
14
|
+
- **Form control:** Fixed placeholder variation menu item color ([#4773](https://github.com/patternfly/patternfly/pull/4773))
|
|
15
|
+
- **Form:**
|
|
16
|
+
- Added CSS vars for defining label cursor ([#4779](https://github.com/patternfly/patternfly/pull/4779))
|
|
17
|
+
- Changed width limited form max width from 500 to 800px ([#4782](https://github.com/patternfly/patternfly/pull/4782))
|
|
18
|
+
- **Login:** Added support for any language selector menu ([#4793](https://github.com/patternfly/patternfly/pull/4793))
|
|
19
|
+
- **Page:** Updated dark theme main section bgcolor ([#4791](https://github.com/patternfly/patternfly/pull/4791))
|
|
20
|
+
- **Search input:** Converted to text-input-group ([#4730](https://github.com/patternfly/patternfly/pull/4730))
|
|
21
|
+
- **Switch:** Updated to switch state colors, added checked + label example ([#4766](https://github.com/patternfly/patternfly/pull/4766))
|
|
22
|
+
- **Tabs:**
|
|
23
|
+
- Added secondary border-bottom variation, update demos ([#4774](https://github.com/patternfly/patternfly/pull/4774))
|
|
24
|
+
- Added close button and add new tab ([#4787](https://github.com/patternfly/patternfly/pull/4787))
|
|
25
|
+
- **Wizard:** Added drawer example ([#4778](https://github.com/patternfly/patternfly/pull/4778))
|
|
26
|
+
|
|
27
|
+
### Other
|
|
28
|
+
- **Global:** Updated code and pre elements to use PF mono font stack ([#4783](https://github.com/patternfly/patternfly/pull/4783))
|
|
29
|
+
- **Theme:** Added stylesheet for prefers-color-scheme dark ([#4761](https://github.com/patternfly/patternfly/pull/4761))
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
## 2022.04 release notes (2022-03-30)
|
|
7
33
|
Packages released:
|
|
8
34
|
- [@patternfly/patternfly@v4.185.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.185.1)
|
|
@@ -63,42 +63,58 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.pf-c-divider {
|
|
66
|
-
--pf-c-divider--
|
|
66
|
+
--pf-c-divider--BorderWidth--base: var(--pf-global--BorderWidth--sm);
|
|
67
|
+
--pf-c-divider--BorderColor--base: var(--pf-c-divider--BackgroundColor);
|
|
68
|
+
--pf-c-divider--Height: var(--pf-c-divider--BorderWidth--base);
|
|
67
69
|
--pf-c-divider--BackgroundColor: var(--pf-global--BorderColor--100);
|
|
68
|
-
--pf-c-divider--after--
|
|
69
|
-
--pf-c-divider--after--BackgroundColor: var(--pf-c-divider--BackgroundColor);
|
|
70
|
-
--pf-c-divider--Display: flex;
|
|
70
|
+
--pf-c-divider--after--BackgroundColor: var(--pf-c-divider--BorderColor--base);
|
|
71
71
|
--pf-c-divider--after--FlexBasis: 100%;
|
|
72
72
|
--pf-c-divider--after--Inset: 0%;
|
|
73
73
|
--pf-c-divider--m-vertical--after--FlexBasis: 100%;
|
|
74
|
-
--pf-c-divider--m-
|
|
74
|
+
--pf-c-divider--m-horizontal--Display: flex;
|
|
75
|
+
--pf-c-divider--m-horizontal--FlexDirection: row;
|
|
76
|
+
--pf-c-divider--m-horizontal--after--Height: var(--pf-c-divider--Height);
|
|
77
|
+
--pf-c-divider--m-horizontal--after--Width: auto;
|
|
78
|
+
--pf-c-divider--m-vertical--Display: inline-flex;
|
|
79
|
+
--pf-c-divider--m-vertical--FlexDirection: column;
|
|
80
|
+
--pf-c-divider--m-vertical--after--Height: auto;
|
|
81
|
+
--pf-c-divider--m-vertical--after--Width: var(--pf-c-divider--BorderWidth--base);
|
|
75
82
|
--pf-hidden-visible--visible--Display: var(--pf-c-divider--Display);
|
|
83
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
84
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
85
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
86
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: auto;
|
|
89
|
+
display: var(--pf-c-divider--Display);
|
|
90
|
+
flex-direction: var(--pf-c-divider--FlexDirection);
|
|
76
91
|
align-items: center;
|
|
77
92
|
align-self: stretch;
|
|
78
93
|
flex-shrink: 0;
|
|
79
94
|
justify-content: center;
|
|
80
|
-
width: 100%;
|
|
81
95
|
border: 0;
|
|
82
96
|
}
|
|
83
97
|
.pf-c-divider::after {
|
|
84
|
-
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2));
|
|
98
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
99
|
+
}
|
|
100
|
+
.pf-c-divider::after {
|
|
85
101
|
align-self: stretch;
|
|
102
|
+
width: var(--pf-c-divider--after--Width);
|
|
86
103
|
height: var(--pf-c-divider--after--Height);
|
|
87
104
|
content: "";
|
|
88
105
|
background-color: var(--pf-c-divider--after--BackgroundColor);
|
|
89
106
|
justify-self: center;
|
|
90
107
|
}
|
|
91
108
|
.pf-c-divider.pf-m-vertical {
|
|
92
|
-
|
|
93
|
-
|
|
109
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
110
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
111
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
112
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
94
113
|
width: auto;
|
|
95
114
|
height: inherit;
|
|
96
|
-
min-height: 100%;
|
|
97
|
-
max-height: 100%;
|
|
98
115
|
}
|
|
99
116
|
.pf-c-divider.pf-m-vertical::after {
|
|
100
|
-
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
101
|
-
width: var(--pf-c-divider--m-vertical--after--Width);
|
|
117
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
102
118
|
}
|
|
103
119
|
.pf-c-divider.pf-m-inset-none {
|
|
104
120
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -124,6 +140,32 @@
|
|
|
124
140
|
.pf-c-divider.pf-m-inset-3xl {
|
|
125
141
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
126
142
|
}
|
|
143
|
+
@media (min-width: 576px) {
|
|
144
|
+
.pf-c-divider.pf-m-horizontal-on-sm {
|
|
145
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
146
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
147
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
148
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: auto;
|
|
151
|
+
}
|
|
152
|
+
.pf-c-divider.pf-m-horizontal-on-sm::after {
|
|
153
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media (min-width: 576px) {
|
|
157
|
+
.pf-c-divider.pf-m-vertical-on-sm {
|
|
158
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
159
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
160
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
161
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
162
|
+
width: auto;
|
|
163
|
+
height: inherit;
|
|
164
|
+
}
|
|
165
|
+
.pf-c-divider.pf-m-vertical-on-sm::after {
|
|
166
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
167
|
+
}
|
|
168
|
+
}
|
|
127
169
|
@media (min-width: 576px) {
|
|
128
170
|
.pf-c-divider.pf-m-inset-none-on-sm {
|
|
129
171
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -150,6 +192,32 @@
|
|
|
150
192
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
151
193
|
}
|
|
152
194
|
}
|
|
195
|
+
@media (min-width: 768px) {
|
|
196
|
+
.pf-c-divider.pf-m-horizontal-on-md {
|
|
197
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
198
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
199
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
200
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
201
|
+
width: 100%;
|
|
202
|
+
height: auto;
|
|
203
|
+
}
|
|
204
|
+
.pf-c-divider.pf-m-horizontal-on-md::after {
|
|
205
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
@media (min-width: 768px) {
|
|
209
|
+
.pf-c-divider.pf-m-vertical-on-md {
|
|
210
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
211
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
212
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
213
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
214
|
+
width: auto;
|
|
215
|
+
height: inherit;
|
|
216
|
+
}
|
|
217
|
+
.pf-c-divider.pf-m-vertical-on-md::after {
|
|
218
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
219
|
+
}
|
|
220
|
+
}
|
|
153
221
|
@media (min-width: 768px) {
|
|
154
222
|
.pf-c-divider.pf-m-inset-none-on-md {
|
|
155
223
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -176,6 +244,32 @@
|
|
|
176
244
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
177
245
|
}
|
|
178
246
|
}
|
|
247
|
+
@media (min-width: 992px) {
|
|
248
|
+
.pf-c-divider.pf-m-horizontal-on-lg {
|
|
249
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
250
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
251
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
252
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
253
|
+
width: 100%;
|
|
254
|
+
height: auto;
|
|
255
|
+
}
|
|
256
|
+
.pf-c-divider.pf-m-horizontal-on-lg::after {
|
|
257
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
@media (min-width: 992px) {
|
|
261
|
+
.pf-c-divider.pf-m-vertical-on-lg {
|
|
262
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
263
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
264
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
265
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
266
|
+
width: auto;
|
|
267
|
+
height: inherit;
|
|
268
|
+
}
|
|
269
|
+
.pf-c-divider.pf-m-vertical-on-lg::after {
|
|
270
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
271
|
+
}
|
|
272
|
+
}
|
|
179
273
|
@media (min-width: 992px) {
|
|
180
274
|
.pf-c-divider.pf-m-inset-none-on-lg {
|
|
181
275
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -202,6 +296,32 @@
|
|
|
202
296
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
203
297
|
}
|
|
204
298
|
}
|
|
299
|
+
@media (min-width: 1200px) {
|
|
300
|
+
.pf-c-divider.pf-m-horizontal-on-xl {
|
|
301
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
302
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
303
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
304
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
305
|
+
width: 100%;
|
|
306
|
+
height: auto;
|
|
307
|
+
}
|
|
308
|
+
.pf-c-divider.pf-m-horizontal-on-xl::after {
|
|
309
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
@media (min-width: 1200px) {
|
|
313
|
+
.pf-c-divider.pf-m-vertical-on-xl {
|
|
314
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
315
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
316
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
317
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
318
|
+
width: auto;
|
|
319
|
+
height: inherit;
|
|
320
|
+
}
|
|
321
|
+
.pf-c-divider.pf-m-vertical-on-xl::after {
|
|
322
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
323
|
+
}
|
|
324
|
+
}
|
|
205
325
|
@media (min-width: 1200px) {
|
|
206
326
|
.pf-c-divider.pf-m-inset-none-on-xl {
|
|
207
327
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -228,6 +348,32 @@
|
|
|
228
348
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
229
349
|
}
|
|
230
350
|
}
|
|
351
|
+
@media (min-width: 1450px) {
|
|
352
|
+
.pf-c-divider.pf-m-horizontal-on-2xl {
|
|
353
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
354
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
355
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
356
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
357
|
+
width: 100%;
|
|
358
|
+
height: auto;
|
|
359
|
+
}
|
|
360
|
+
.pf-c-divider.pf-m-horizontal-on-2xl::after {
|
|
361
|
+
flex-basis: calc( var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2) );
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
@media (min-width: 1450px) {
|
|
365
|
+
.pf-c-divider.pf-m-vertical-on-2xl {
|
|
366
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
367
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
368
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
369
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
370
|
+
width: auto;
|
|
371
|
+
height: inherit;
|
|
372
|
+
}
|
|
373
|
+
.pf-c-divider.pf-m-vertical-on-2xl::after {
|
|
374
|
+
flex-basis: calc( var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset) );
|
|
375
|
+
}
|
|
376
|
+
}
|
|
231
377
|
@media (min-width: 1450px) {
|
|
232
378
|
.pf-c-divider.pf-m-inset-none-on-2xl {
|
|
233
379
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -1,62 +1,107 @@
|
|
|
1
1
|
$pf-c-divider--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
2
2
|
$pf-c-divider--spacer-map: build-spacer-map("none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl");
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
--pf-c-divider--
|
|
7
|
-
--pf-c-divider--
|
|
8
|
-
--pf-c-divider--after--Height: var(--pf-c-divider--Height);
|
|
9
|
-
|
|
4
|
+
@mixin pf-c-divider--m-horizontal {
|
|
5
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
6
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
7
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
8
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
9
|
+
|
|
10
|
+
width: 100%; // update to var breaking change
|
|
11
|
+
height: auto; // update to var breaking change
|
|
12
|
+
|
|
13
|
+
&::after {
|
|
14
|
+
flex-basis:
|
|
15
|
+
calc(
|
|
16
|
+
var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2)
|
|
17
|
+
); // update at breaking change
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin pf-c-divider--m-vertical {
|
|
22
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
23
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
24
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
25
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
10
26
|
|
|
11
|
-
|
|
27
|
+
width: auto; // update to var breaking change
|
|
28
|
+
height: inherit; // update to var at breaking change
|
|
12
29
|
|
|
13
|
-
|
|
30
|
+
&::after {
|
|
31
|
+
flex-basis:
|
|
32
|
+
calc(
|
|
33
|
+
var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset)
|
|
34
|
+
); // update at breaking change
|
|
35
|
+
}
|
|
36
|
+
}
|
|
14
37
|
|
|
15
|
-
|
|
38
|
+
.pf-c-divider {
|
|
39
|
+
// Base
|
|
40
|
+
--pf-c-divider--BorderWidth--base: var(--pf-global--BorderWidth--sm);
|
|
41
|
+
--pf-c-divider--BorderColor--base: var(--pf-c-divider--BackgroundColor); // update at breaking change
|
|
42
|
+
--pf-c-divider--Height: var(--pf-c-divider--BorderWidth--base); // remove at breaking change
|
|
43
|
+
--pf-c-divider--BackgroundColor: var(--pf-global--BorderColor--100); // remove at breaking change
|
|
44
|
+
--pf-c-divider--after--BackgroundColor: var(--pf-c-divider--BorderColor--base); // remove at breaking change
|
|
45
|
+
|
|
46
|
+
// Borders
|
|
16
47
|
--pf-c-divider--after--FlexBasis: 100%;
|
|
17
48
|
--pf-c-divider--after--Inset: 0%;
|
|
18
49
|
|
|
19
50
|
// Vertical
|
|
20
|
-
--pf-c-divider--m-vertical--after--FlexBasis: 100%;
|
|
21
|
-
|
|
51
|
+
--pf-c-divider--m-vertical--after--FlexBasis: 100%; // remove at breaking change
|
|
52
|
+
|
|
53
|
+
// Horizontal mixin
|
|
54
|
+
--pf-c-divider--m-horizontal--Display: flex;
|
|
55
|
+
--pf-c-divider--m-horizontal--FlexDirection: row;
|
|
56
|
+
--pf-c-divider--m-horizontal--after--Height: var(--pf-c-divider--Height); // update at breaking change
|
|
57
|
+
--pf-c-divider--m-horizontal--after--Width: auto;
|
|
58
|
+
|
|
59
|
+
// Vertical mixin
|
|
60
|
+
--pf-c-divider--m-vertical--Display: inline-flex;
|
|
61
|
+
--pf-c-divider--m-vertical--FlexDirection: column;
|
|
62
|
+
--pf-c-divider--m-vertical--after--Height: auto;
|
|
63
|
+
--pf-c-divider--m-vertical--after--Width: var(--pf-c-divider--BorderWidth--base); // remove at breaking change
|
|
22
64
|
|
|
65
|
+
// Vertical
|
|
23
66
|
@include pf-hidden-visible(var(--pf-c-divider--Display));
|
|
67
|
+
@include pf-c-divider--m-horizontal; // set to default to horizontal
|
|
24
68
|
|
|
69
|
+
display: var(--pf-c-divider--Display);
|
|
70
|
+
flex-direction: var(--pf-c-divider--FlexDirection);
|
|
25
71
|
align-items: center;
|
|
26
72
|
align-self: stretch;
|
|
27
73
|
flex-shrink: 0;
|
|
28
74
|
justify-content: center;
|
|
29
|
-
width: 100%;
|
|
30
75
|
border: 0; // removes the default border styling on an hr
|
|
31
76
|
|
|
32
77
|
&::after {
|
|
33
|
-
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - calc(var(--pf-c-divider--after--Inset) * 2));
|
|
34
78
|
align-self: stretch;
|
|
79
|
+
width: var(--pf-c-divider--after--Width);
|
|
35
80
|
height: var(--pf-c-divider--after--Height);
|
|
36
81
|
content: "";
|
|
37
82
|
background-color: var(--pf-c-divider--after--BackgroundColor);
|
|
38
83
|
justify-self: center;
|
|
39
84
|
}
|
|
40
85
|
|
|
41
|
-
&.pf-m-vertical {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
width: auto;
|
|
45
|
-
height: inherit;
|
|
46
|
-
min-height: 100%;
|
|
47
|
-
max-height: 100%;
|
|
48
|
-
|
|
49
|
-
&::after {
|
|
50
|
-
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
51
|
-
width: var(--pf-c-divider--m-vertical--after--Width);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
86
|
// stylelint-disable max-nesting-depth
|
|
56
|
-
|
|
87
|
+
|
|
57
88
|
@each $breakpoint, $breakpoint-value in $pf-c-divider--breakpoint-map {
|
|
58
89
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
59
90
|
|
|
91
|
+
@if ($breakpoint != "base") {
|
|
92
|
+
@include pf-apply-breakpoint($breakpoint) {
|
|
93
|
+
&.pf-m-horizontal#{$breakpoint-name} {
|
|
94
|
+
@include pf-c-divider--m-horizontal;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@include pf-apply-breakpoint($breakpoint) {
|
|
100
|
+
&.pf-m-vertical#{$breakpoint-name} {
|
|
101
|
+
@include pf-c-divider--m-vertical;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
60
105
|
@include pf-apply-breakpoint($breakpoint) {
|
|
61
106
|
@each $spacer, $spacer-value in $pf-c-divider--spacer-map {
|
|
62
107
|
@if $spacer == none {
|
|
@@ -69,5 +114,6 @@ $pf-c-divider--spacer-map: build-spacer-map("none", "xs", "sm", "md", "lg", "xl"
|
|
|
69
114
|
}
|
|
70
115
|
}
|
|
71
116
|
}
|
|
117
|
+
|
|
72
118
|
// stylelint-enable
|
|
73
119
|
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
--pf-c-text-input-group--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
30
30
|
position: relative;
|
|
31
31
|
display: flex;
|
|
32
|
+
width: 100%;
|
|
32
33
|
color: var(--pf-c-text-input-group--Color, inherit);
|
|
33
34
|
background-color: var(--pf-c-text-input-group--BackgroundColor);
|
|
34
35
|
}
|
|
@@ -144,4 +145,8 @@
|
|
|
144
145
|
.pf-c-text-input-group__utilities .pf-c-button {
|
|
145
146
|
--pf-c-button--PaddingRight: var(--pf-c-text-input-group__utilities--c-button--PaddingRight);
|
|
146
147
|
--pf-c-button--PaddingLeft: var(--pf-c-text-input-group__utilities--c-button--PaddingLeft);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.pf-c-text-input-group__group {
|
|
151
|
+
display: flex;
|
|
147
152
|
}
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
position: relative;
|
|
47
47
|
display: flex;
|
|
48
|
+
width: 100%; // when child of flex layout, take up space
|
|
48
49
|
color: var(--pf-c-text-input-group--Color, inherit);
|
|
49
50
|
background-color: var(--pf-c-text-input-group--BackgroundColor);
|
|
50
51
|
|
|
@@ -190,3 +191,8 @@
|
|
|
190
191
|
--pf-c-button--PaddingLeft: var(--pf-c-text-input-group__utilities--c-button--PaddingLeft);
|
|
191
192
|
}
|
|
192
193
|
}
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
.pf-c-text-input-group__group {
|
|
197
|
+
display: flex;
|
|
198
|
+
}
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
--pf-c-tree-view--m-guides__list-item--before--BackgroundColor: var(--pf-c-tree-view--m-guides--guide-color--base);
|
|
60
60
|
--pf-c-tree-view--m-guides__list-item--last-child--before--Top: var(--pf-c-tree-view--m-guides__node--before--Top);
|
|
61
61
|
--pf-c-tree-view--m-guides__list-item--last-child--before--Height: var(--pf-c-tree-view--m-guides__list-item--last-child--before--Top);
|
|
62
|
+
--pf-c-tree-view--m-guides__list-item--ZIndex: var(--pf-global--ZIndex--xs);
|
|
62
63
|
--pf-c-tree-view--m-guides__node--before--Width: 1rem;
|
|
63
64
|
--pf-c-tree-view--m-guides__node--before--Height: var(--pf-c-tree-view--m-guides--guide-width--base);
|
|
64
65
|
--pf-c-tree-view--m-guides__node--before--Top: 1.125rem;
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
}
|
|
120
121
|
.pf-c-tree-view.pf-m-compact .pf-c-tree-view__list-item .pf-c-tree-view__list-item::before, .pf-c-tree-view.pf-m-guides .pf-c-tree-view__list-item .pf-c-tree-view__list-item::before {
|
|
121
122
|
top: var(--pf-c-tree-view--m-guides__list-item--before--Top);
|
|
123
|
+
z-index: var(--pf-c-tree-view--m-guides__list-item--ZIndex);
|
|
122
124
|
width: var(--pf-c-tree-view--m-guides__list-item--before--Width);
|
|
123
125
|
height: var(--pf-c-tree-view--m-guides__list-item--before--Height);
|
|
124
126
|
background-color: var(--pf-c-tree-view--m-guides__list-item--before--BackgroundColor);
|
|
@@ -98,6 +98,7 @@ $pf-c-tree-view--MaxNesting: 10;
|
|
|
98
98
|
--pf-c-tree-view--m-guides__list-item--before--BackgroundColor: var(--pf-c-tree-view--m-guides--guide-color--base);
|
|
99
99
|
--pf-c-tree-view--m-guides__list-item--last-child--before--Top: var(--pf-c-tree-view--m-guides__node--before--Top);
|
|
100
100
|
--pf-c-tree-view--m-guides__list-item--last-child--before--Height: var(--pf-c-tree-view--m-guides__list-item--last-child--before--Top);
|
|
101
|
+
--pf-c-tree-view--m-guides__list-item--ZIndex: var(--pf-global--ZIndex--xs);
|
|
101
102
|
|
|
102
103
|
// Node
|
|
103
104
|
--pf-c-tree-view--m-guides__node--before--Width: #{pf-size-prem(16px)};
|
|
@@ -187,6 +188,7 @@ $pf-c-tree-view--MaxNesting: 10;
|
|
|
187
188
|
// vertical border
|
|
188
189
|
&::before {
|
|
189
190
|
top: var(--pf-c-tree-view--m-guides__list-item--before--Top);
|
|
191
|
+
z-index: var(--pf-c-tree-view--m-guides__list-item--ZIndex);
|
|
190
192
|
width: var(--pf-c-tree-view--m-guides__list-item--before--Width);
|
|
191
193
|
height: var(--pf-c-tree-view--m-guides__list-item--before--Height);
|
|
192
194
|
background-color: var(--pf-c-tree-view--m-guides__list-item--before--BackgroundColor);
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
#ws-core-c-divider-vertical-md-inset-no-inset-on-md-lg-inset-on-lg-sm-inset-on-xl .ws-preview-html {
|
|
4
|
-
height: 3rem;
|
|
5
|
-
display: flex;
|
|
1
|
+
[id*="ws-core-c-divider-vertical"],
|
|
2
|
+
[id*="ws-core-c-divider-horizontal"] .ws-preview-html {
|
|
6
3
|
align-items: center;
|
|
7
4
|
}
|
|
5
|
+
|
|
6
|
+
[id*="ws-core-c-divider-vertical"],
|
|
7
|
+
#ws-core-c-divider-horizontal-on-lg {
|
|
8
|
+
height: 4rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[id*="ws-core-c-divider"] .ws-preview-html {
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
@@ -72,6 +72,20 @@ cssPrefix: pf-c-divider
|
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
+
### Vertical on lg
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<div class="pf-c-divider pf-m-horizontal pf-m-vertical-on-lg" role="separator"></div>
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Horizontal on lg
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<div class="pf-c-divider pf-m-horizontal-on-lg pf-m-vertical" role="separator"></div>
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
|
|
75
89
|
## Documentation
|
|
76
90
|
|
|
77
91
|
### Overview
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
id: Input group
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-c-input-group
|
|
5
|
-
|
|
5
|
+
---### Overview
|
|
6
|
+
|
|
7
|
+
Use the input group to extend form controls by adding text, buttons, selects, etc. The input group handles border overlap.
|
|
8
|
+
|
|
9
|
+
## Examples
|
|
6
10
|
|
|
7
11
|
### Variations
|
|
8
12
|
|
|
@@ -213,10 +217,6 @@ cssPrefix: pf-c-input-group
|
|
|
213
217
|
|
|
214
218
|
## Documentation
|
|
215
219
|
|
|
216
|
-
### Overview
|
|
217
|
-
|
|
218
|
-
Use the input group to extend form controls by adding text, buttons, selects, etc.
|
|
219
|
-
|
|
220
220
|
### Accessibility
|
|
221
221
|
|
|
222
222
|
When using the `.pf-c-input-group` always ensure labels are used outside the input group with the `.pf-screen-reader` class applied. You can also make use of the `aria-describedby`, `aria-label`, or `aria-labelledby` attributes. For more information on accessibility and forms see the [form component](/components/form).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#ws-core-c-search-input-advanced-search-expanded,
|
|
2
|
+
#ws-core-c-text-input-group-search-input-group-advanced-search-expanded-with-autocomplete {
|
|
3
|
+
height: 540px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#ws-core-c-search-input-autocomplete {
|
|
7
|
+
height: 250px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#ws-core-c-search-input-autocomplete-last-option-hint {
|
|
11
|
+
height: 130px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ws-example-wrapper {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ws-example-wrapper .pf-c-menu,
|
|
19
|
+
.ws-example-wrapper .pf-c-panel {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 40px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|