@patternfly/patternfly 4.166.5 → 4.170.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.
@@ -11,9 +11,14 @@
11
11
  --pf-c-description-list__group--GridColumn: auto;
12
12
  --pf-c-description-list--m-compact--RowGap: var(--pf-global--gutter);
13
13
  --pf-c-description-list--m-compact--ColumnGap: var(--pf-global--spacer--sm);
14
+ --pf-c-description-list__term--Display: inline;
15
+ --pf-c-description-list__term--sm--Display: flex;
14
16
  --pf-c-description-list__term--FontWeight: var(--pf-global--FontWeight--bold);
15
17
  --pf-c-description-list__term--FontSize: var(--pf-global--FontSize--sm);
16
18
  --pf-c-description-list__term--LineHeight: var(--pf-global--LineHeight--sm);
19
+ --pf-c-description-list__term-icon--MinWidth: var(--pf-global--icon--FontSize--sm);
20
+ --pf-c-description-list__term-icon--MarginRight: var(--pf-global--spacer--sm);
21
+ --pf-c-description-list__term-icon--Color: var(--pf-global--icon--Color--light);
17
22
  --pf-c-description-list--m-vertical__group--GridTemplateColumns: repeat(var(--pf-c-description-list--GridTemplateColumns--count));
18
23
  --pf-c-description-list--m-horizontal__term--width: 12ch;
19
24
  --pf-c-description-list--m-horizontal__description--width: minmax(10ch, auto);
@@ -34,6 +39,11 @@
34
39
  column-gap: var(--pf-c-description-list--ColumnGap);
35
40
  grid-template-columns: var(--pf-c-description-list--GridTemplateColumns);
36
41
  }
42
+ @media screen and (min-width: 576px) {
43
+ .pf-c-description-list {
44
+ --pf-c-description-list__term--Display: var(--pf-c-description-list__term--sm--Display);
45
+ }
46
+ }
37
47
  .pf-c-description-list[class*=pf-m-horizontal] {
38
48
  --pf-c-description-list__term--width: var(--pf-c-description-list--m-horizontal__term--width);
39
49
  }
@@ -136,6 +146,7 @@
136
146
  }
137
147
 
138
148
  .pf-c-description-list__term {
149
+ display: var(--pf-c-description-list__term--Display);
139
150
  font-size: var(--pf-c-description-list__term--FontSize);
140
151
  font-weight: var(--pf-c-description-list__term--FontWeight);
141
152
  line-height: var(--pf-c-description-list__term--LineHeight);
@@ -144,6 +155,13 @@
144
155
  display: inline;
145
156
  }
146
157
 
158
+ .pf-c-description-list__term-icon {
159
+ flex-shrink: 0;
160
+ min-width: var(--pf-c-description-list__term-icon--MinWidth);
161
+ margin-right: var(--pf-c-description-list__term-icon--MarginRight);
162
+ color: var(--pf-c-description-list__term-icon--Color);
163
+ }
164
+
147
165
  .pf-c-description-list__text.pf-m-help-text {
148
166
  text-decoration: underline;
149
167
  cursor: pointer;
@@ -19,10 +19,21 @@ $pf-c-description-list--breakpoint-map: build-breakpoint-map("base", "sm", "md",
19
19
  --pf-c-description-list--m-compact--ColumnGap: var(--pf-global--spacer--sm);
20
20
 
21
21
  // term
22
+ --pf-c-description-list__term--Display: inline;
23
+ --pf-c-description-list__term--sm--Display: flex;
22
24
  --pf-c-description-list__term--FontWeight: var(--pf-global--FontWeight--bold);
23
25
  --pf-c-description-list__term--FontSize: var(--pf-global--FontSize--sm);
24
26
  --pf-c-description-list__term--LineHeight: var(--pf-global--LineHeight--sm);
25
27
 
28
+ @media screen and (min-width: $pf-global--breakpoint--sm) {
29
+ --pf-c-description-list__term--Display: var(--pf-c-description-list__term--sm--Display);
30
+ }
31
+
32
+ // icon
33
+ --pf-c-description-list__term-icon--MinWidth: var(--pf-global--icon--FontSize--sm);
34
+ --pf-c-description-list__term-icon--MarginRight: var(--pf-global--spacer--sm);
35
+ --pf-c-description-list__term-icon--Color: var(--pf-global--icon--Color--light);
36
+
26
37
  // vertical
27
38
  --pf-c-description-list--m-vertical__group--GridTemplateColumns: repeat(var(--pf-c-description-list--GridTemplateColumns--count));
28
39
 
@@ -115,6 +126,7 @@ $pf-c-description-list--breakpoint-map: build-breakpoint-map("base", "sm", "md",
115
126
  }
116
127
 
117
128
  .pf-c-description-list__term {
129
+ display: var(--pf-c-description-list__term--Display);
118
130
  font-size: var(--pf-c-description-list__term--FontSize);
119
131
  font-weight: var(--pf-c-description-list__term--FontWeight);
120
132
  line-height: var(--pf-c-description-list__term--LineHeight);
@@ -124,6 +136,13 @@ $pf-c-description-list--breakpoint-map: build-breakpoint-map("base", "sm", "md",
124
136
  }
125
137
  }
126
138
 
139
+ .pf-c-description-list__term-icon {
140
+ flex-shrink: 0;
141
+ min-width: var(--pf-c-description-list__term-icon--MinWidth);
142
+ margin-right: var(--pf-c-description-list__term-icon--MarginRight);
143
+ color: var(--pf-c-description-list__term-icon--Color);
144
+ }
145
+
127
146
  .pf-c-description-list__text {
128
147
  &.pf-m-help-text {
129
148
  text-decoration: underline;
@@ -370,6 +370,10 @@
370
370
  white-space: nowrap;
371
371
  }
372
372
 
373
+ .pf-c-dropdown__toggle-text {
374
+ flex: 0 1 auto;
375
+ }
376
+
373
377
  .pf-c-dropdown__toggle-icon {
374
378
  margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
375
379
  margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
@@ -381,6 +385,7 @@
381
385
 
382
386
  .pf-c-dropdown__toggle-image {
383
387
  display: inline-flex;
388
+ flex-shrink: 0;
384
389
  margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
385
390
  margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
386
391
  margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
@@ -511,6 +511,10 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
511
511
  }
512
512
  }
513
513
 
514
+ .pf-c-dropdown__toggle-text {
515
+ flex: 0 1 auto;
516
+ }
517
+
514
518
  .pf-c-dropdown__toggle-icon {
515
519
  margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
516
520
  margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
@@ -525,6 +529,7 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
525
529
  // Toggle image
526
530
  .pf-c-dropdown__toggle-image {
527
531
  display: inline-flex;
532
+ flex-shrink: 0;
528
533
  margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
529
534
  margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
530
535
  margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
@@ -230,6 +230,9 @@
230
230
  --pf-c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderRightColor);
231
231
  --pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
232
232
  }
233
+ .pf-c-masthead .pf-c-nav {
234
+ align-self: stretch;
235
+ }
233
236
 
234
237
  .pf-c-masthead__main {
235
238
  position: relative;
@@ -242,6 +242,10 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
242
242
  --pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
243
243
  }
244
244
  }
245
+
246
+ .pf-c-nav {
247
+ align-self: stretch;
248
+ }
245
249
  }
246
250
 
247
251
  // Main
@@ -275,6 +275,7 @@
275
275
  --pf-c-table--thead--m-nested-column-header--tr--PaddingTop: var(--pf-global--spacer--xs);
276
276
  --pf-c-table--thead--m-nested-column-header--tr--PaddingBottom: var(--pf-global--spacer--xs);
277
277
  --pf-c-table__subhead--Color: var(--pf-global--Color--200);
278
+ --pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
278
279
  color: var(--pf-global--Color--100);
279
280
  width: 100%;
280
281
  background-color: var(--pf-c-table--BackgroundColor);
@@ -316,6 +317,13 @@
316
317
  content: "";
317
318
  border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
318
319
  }
320
+ .pf-c-table.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), .pf-c-table.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row),
321
+ .pf-c-table > .pf-m-striped > tr:nth-child(odd),
322
+ .pf-c-table > .pf-m-striped-even > tr:nth-child(even),
323
+ .pf-c-table tr.pf-m-striped {
324
+ --pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
325
+ background: var(--pf-c-table--m-striped__tr--BackgroundColor);
326
+ }
319
327
  .pf-c-table tr:not(.pf-c-table__expandable-row) {
320
328
  border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
321
329
  }
@@ -303,6 +303,9 @@
303
303
  // Subhead
304
304
  --pf-c-table__subhead--Color: var(--pf-global--Color--200);
305
305
 
306
+ // Striped
307
+ --pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
308
+
306
309
  @media screen and (min-width: $pf-global--breakpoint--xl) {
307
310
  --pf-c-table--cell--first-last-child--PaddingRight: var(--pf-c-table--cell--first-last-child--xl--PaddingRight);
308
311
  --pf-c-table--cell--first-last-child--PaddingLeft: var(--pf-c-table--cell--first-last-child--xl--PaddingLeft);
@@ -345,6 +348,19 @@
345
348
  }
346
349
  }
347
350
 
351
+ // For regular and expandable tables
352
+ // stylelint-disable
353
+ &.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), // regular table
354
+ &.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row), // expandable table
355
+ > .pf-m-striped > tr:nth-child(odd), // tbody odd
356
+ > .pf-m-striped-even > tr:nth-child(even), // tbody even
357
+ tr.pf-m-striped { // tr
358
+ --pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
359
+
360
+ background: var(--pf-c-table--m-striped__tr--BackgroundColor);
361
+ }
362
+ // stylelint-enable
363
+
348
364
  // Standard table row (non-expandable)
349
365
  // exclude expandable rows
350
366
  tr:not(.pf-c-table__expandable-row) {
@@ -324,6 +324,12 @@
324
324
  --pf-c-toolbar--spacer: 0;
325
325
  }
326
326
 
327
+ .pf-c-toolbar__group.pf-m-overflow-container,
328
+ .pf-c-toolbar__item.pf-m-overflow-container {
329
+ flex: 1;
330
+ overflow: hidden;
331
+ }
332
+
327
333
  .pf-c-toolbar__expand-all-icon {
328
334
  display: inline-block;
329
335
  transition: var(--pf-c-toolbar__expand-all-icon--Transition);
@@ -322,6 +322,15 @@ $pf-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl"
322
322
  }
323
323
  }
324
324
 
325
+ .pf-c-toolbar__group,
326
+ .pf-c-toolbar__item {
327
+ &.pf-m-overflow-container {
328
+ flex: 1;
329
+ overflow: hidden;
330
+ }
331
+ }
332
+
333
+
325
334
  .pf-c-toolbar__expand-all-icon {
326
335
  display: inline-block;
327
336
  transition: var(--pf-c-toolbar__expand-all-icon--Transition);
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: 'Back to top'
3
- beta: true
4
3
  section: components
5
4
  cssPrefix: pf-c-back-to-top
6
5
  ---import './BackToTop.css'
@@ -67,12 +67,7 @@ cssPrefix: pf-c-description-list
67
67
  <dl class="pf-c-description-list">
68
68
  <div class="pf-c-description-list__group">
69
69
  <dt class="pf-c-description-list__term">
70
- <span
71
- class="pf-c-description-list__text pf-m-help-text"
72
- role="button"
73
- type="button"
74
- tabindex="0"
75
- >Name</span>
70
+ <span class="pf-c-description-list__text">Name</span>
76
71
  </dt>
77
72
  <dd class="pf-c-description-list__description">
78
73
  <div class="pf-c-description-list__text">example</div>
@@ -80,12 +75,7 @@ cssPrefix: pf-c-description-list
80
75
  </div>
81
76
  <div class="pf-c-description-list__group">
82
77
  <dt class="pf-c-description-list__term">
83
- <span
84
- class="pf-c-description-list__text pf-m-help-text"
85
- role="button"
86
- type="button"
87
- tabindex="0"
88
- >Namespace</span>
78
+ <span class="pf-c-description-list__text">Namespace</span>
89
79
  </dt>
90
80
  <dd class="pf-c-description-list__description">
91
81
  <div class="pf-c-description-list__text">
@@ -95,12 +85,7 @@ cssPrefix: pf-c-description-list
95
85
  </div>
96
86
  <div class="pf-c-description-list__group">
97
87
  <dt class="pf-c-description-list__term">
98
- <span
99
- class="pf-c-description-list__text pf-m-help-text"
100
- role="button"
101
- type="button"
102
- tabindex="0"
103
- >Labels</span>
88
+ <span class="pf-c-description-list__text">Labels</span>
104
89
  </dt>
105
90
  <dd class="pf-c-description-list__description">
106
91
  <div class="pf-c-description-list__text">example</div>
@@ -108,12 +93,7 @@ cssPrefix: pf-c-description-list
108
93
  </div>
109
94
  <div class="pf-c-description-list__group">
110
95
  <dt class="pf-c-description-list__term">
111
- <span
112
- class="pf-c-description-list__text pf-m-help-text"
113
- role="button"
114
- type="button"
115
- tabindex="0"
116
- >Pod selector</span>
96
+ <span class="pf-c-description-list__text">Pod selector</span>
117
97
  </dt>
118
98
  <dd class="pf-c-description-list__description">
119
99
  <div class="pf-c-description-list__text">
@@ -128,12 +108,7 @@ cssPrefix: pf-c-description-list
128
108
  </div>
129
109
  <div class="pf-c-description-list__group">
130
110
  <dt class="pf-c-description-list__term">
131
- <span
132
- class="pf-c-description-list__text pf-m-help-text"
133
- role="button"
134
- type="button"
135
- tabindex="0"
136
- >Annotation</span>
111
+ <span class="pf-c-description-list__text">Annotation</span>
137
112
  </dt>
138
113
  <dd class="pf-c-description-list__description">
139
114
  <div class="pf-c-description-list__text">2 Annotations</div>
@@ -1202,6 +1177,82 @@ Column fill will modify the default placement of description list groups to fill
1202
1177
  {{> description-list__example description-list--title="Horizontal 2 column DL" description-list--modifier="pf-m-horizontal pf-m-auto-term-widths pf-m-2-col"}}
1203
1178
  ``` -->
1204
1179
 
1180
+ ## With icons
1181
+
1182
+ ### Icons on terms
1183
+
1184
+ ```html
1185
+ <dl class="pf-c-description-list">
1186
+ <div class="pf-c-description-list__group">
1187
+ <dt class="pf-c-description-list__term">
1188
+ <span class="pf-c-description-list__term-icon">
1189
+ <i class="fas fa-cube" aria-hidden="true"></i>
1190
+ </span>
1191
+ <span
1192
+ class="pf-c-description-list__text"
1193
+ >This is a long description that should wrap to multiple lines in cases where the viewport is quite narrow.</span>
1194
+ </dt>
1195
+ <dd class="pf-c-description-list__description">
1196
+ <div class="pf-c-description-list__text">example</div>
1197
+ </dd>
1198
+ </div>
1199
+ <div class="pf-c-description-list__group">
1200
+ <dt class="pf-c-description-list__term">
1201
+ <span class="pf-c-description-list__term-icon">
1202
+ <i class="fas fa-book" aria-hidden="true"></i>
1203
+ </span>
1204
+ <span class="pf-c-description-list__text">Namespace</span>
1205
+ </dt>
1206
+ <dd class="pf-c-description-list__description">
1207
+ <div class="pf-c-description-list__text">
1208
+ <a href="#">mary-test</a>
1209
+ </div>
1210
+ </dd>
1211
+ </div>
1212
+ <div class="pf-c-description-list__group">
1213
+ <dt class="pf-c-description-list__term">
1214
+ <span class="pf-c-description-list__term-icon">
1215
+ <i class="fas fa-key" aria-hidden="true"></i>
1216
+ </span>
1217
+ <span class="pf-c-description-list__text">Labels</span>
1218
+ </dt>
1219
+ <dd class="pf-c-description-list__description">
1220
+ <div class="pf-c-description-list__text">example</div>
1221
+ </dd>
1222
+ </div>
1223
+ <div class="pf-c-description-list__group">
1224
+ <dt class="pf-c-description-list__term">
1225
+ <span class="pf-c-description-list__term-icon">
1226
+ <i class="fas fa-globe" aria-hidden="true"></i>
1227
+ </span>
1228
+ <span class="pf-c-description-list__text">Pod selector</span>
1229
+ </dt>
1230
+ <dd class="pf-c-description-list__description">
1231
+ <div class="pf-c-description-list__text">
1232
+ <button class="pf-c-button pf-m-link pf-m-inline" type="button">
1233
+ <span class="pf-c-button__icon pf-m-start">
1234
+ <i class="fas fa-plus-circle" aria-hidden="true"></i>
1235
+ </span>
1236
+ app=MyApp
1237
+ </button>
1238
+ </div>
1239
+ </dd>
1240
+ </div>
1241
+ <div class="pf-c-description-list__group">
1242
+ <dt class="pf-c-description-list__term">
1243
+ <span class="pf-c-description-list__term-icon">
1244
+ <i class="fas fa-flag" aria-hidden="true"></i>
1245
+ </span>
1246
+ <span class="pf-c-description-list__text">Annotation</span>
1247
+ </dt>
1248
+ <dd class="pf-c-description-list__description">
1249
+ <div class="pf-c-description-list__text">2 Annotations</div>
1250
+ </dd>
1251
+ </div>
1252
+ </dl>
1253
+
1254
+ ```
1255
+
1205
1256
  ## Documentation
1206
1257
 
1207
1258
  ### Accessibility
@@ -1220,6 +1271,7 @@ Column fill will modify the default placement of description list groups to fill
1220
1271
  | `.pf-c-description-list__term` | `<dt>` | Initiates a description list component term. **Required** |
1221
1272
  | `.pf-c-description-list__description` | `<dd>` | Initiates a description list component description. **Required** |
1222
1273
  | `.pf-c-description-list__text` | `<span>`, `<div>` | Initiates a description list component text element. Use a `<span>` when a child of `.pf-c-description-list__term`. **Required** |
1274
+ | `.pf-c-description-list__term-icon` | `<span>` | Initiates a description list component term icon element. |
1223
1275
  | `.pf-m-compact` | `.pf-c-description-list` | Modifies the description list for compact horizontal and vertical spacing. |
1224
1276
  | `.pf-m-fluid` | `.pf-c-description-list.pf-m-horizontal` | Modifies the description list term width to be fluid. |
1225
1277
  | `.pf-m-help-text` | `.pf-c-description-list__text` | Indicates there is more information available for the description list component term text. |
@@ -2,7 +2,6 @@
2
2
  id: Jump links
3
3
  section: components
4
4
  cssPrefix: pf-c-jump-links
5
- beta: true
6
5
  ---## Examples
7
6
 
8
7
  ### Horizontal default