@patternfly/patternfly 6.0.0-alpha.100 → 6.0.0-alpha.102

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.
Files changed (56) hide show
  1. package/components/Nav/nav.css +3 -1
  2. package/components/Nav/nav.scss +4 -2
  3. package/components/Table/table-scrollable.css +12 -15
  4. package/components/Table/table-scrollable.scss +33 -30
  5. package/components/Table/table-tree-view.css +0 -2
  6. package/components/Table/table-tree-view.scss +9 -11
  7. package/components/Table/table.css +118 -55
  8. package/components/Table/table.scss +182 -100
  9. package/docs/components/Nav/examples/Navigation.css +2 -2
  10. package/docs/components/Nav/examples/Navigation.md +57 -55
  11. package/docs/components/Table/examples/Table.css +6 -8
  12. package/docs/components/Table/examples/Table.md +79 -92
  13. package/docs/demos/Table/examples/Table.md +28 -28
  14. package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
  15. package/docs/utilities/Alignment/examples/Alignment.css +4 -4
  16. package/docs/utilities/Alignment/examples/Alignment.md +5 -5
  17. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +24 -24
  18. package/docs/utilities/BoxShadow/examples/box-shadow.css +11 -11
  19. package/docs/utilities/BoxShadow/examples/box-shadow.md +15 -38
  20. package/docs/utilities/Display/examples/Display.css +8 -8
  21. package/docs/utilities/Display/examples/Display.md +7 -7
  22. package/docs/utilities/Flex/examples/Flex.css +5 -5
  23. package/docs/utilities/Flex/examples/Flex.md +82 -40
  24. package/docs/utilities/Float/examples/Float.css +2 -2
  25. package/docs/utilities/Float/examples/Float.md +6 -6
  26. package/docs/utilities/Sizing/examples/Sizing.css +4 -4
  27. package/docs/utilities/Sizing/examples/Sizing.md +60 -60
  28. package/docs/utilities/Spacing/examples/Spacing.css +1 -1
  29. package/docs/utilities/Spacing/examples/Spacing.md +37 -37
  30. package/docs/utilities/Text/examples/Text.md +53 -53
  31. package/package.json +1 -1
  32. package/patternfly-addons.css +91 -371
  33. package/patternfly-no-globals.css +133 -73
  34. package/patternfly-theme-dark-unversioned.css +133 -73
  35. package/patternfly.css +133 -73
  36. package/patternfly.min.css +1 -1
  37. package/patternfly.min.css.map +1 -1
  38. package/sass-utilities/mixins.scss +2 -2
  39. package/utilities/Alignment/alignment.css +24 -24
  40. package/utilities/Alignment/alignment.scss +4 -4
  41. package/utilities/BackgroundColor/BackgroundColor.css +0 -100
  42. package/utilities/BackgroundColor/BackgroundColor.scss +2 -8
  43. package/utilities/BoxShadow/box-shadow.css +15 -39
  44. package/utilities/BoxShadow/box-shadow.scss +17 -27
  45. package/utilities/Display/display.scss +2 -2
  46. package/utilities/Flex/flex.scss +18 -18
  47. package/utilities/Float/float.css +24 -24
  48. package/utilities/Float/float.scss +4 -4
  49. package/utilities/Sizing/sizing.css +28 -28
  50. package/utilities/Sizing/sizing.scss +17 -17
  51. package/utilities/Text/text.css +0 -155
  52. package/utilities/Text/text.scss +10 -16
  53. package/utilities/BackgroundColor/themes/dark/BackgroundColor.css +0 -0
  54. package/utilities/BackgroundColor/themes/dark/BackgroundColor.scss +0 -25
  55. package/utilities/Text/themes/dark/text.css +0 -0
  56. package/utilities/Text/themes/dark/text.scss +0 -33
@@ -19,23 +19,30 @@
19
19
  --#{$table}__thead--cell--FontSize: var(--pf-t--global--font--size--body--sm);
20
20
  --#{$table}__thead--cell--FontWeight: var(--pf-t--global--font--weight--body--bold);
21
21
 
22
+ // * Table thead toggle
23
+ --#{$table}__thead__toggle--PaddingBottom: var(--pf-t--global--spacer--xs);
24
+
22
25
  // * Table body cell
23
26
  --#{$table}__tbody--cell--PaddingTop: var(--#{$table}--cell--Padding--base);
24
27
  --#{$table}__tbody--cell--PaddingBottom: var(--#{$table}--cell--Padding--base);
25
28
  --#{$table}__tbody--cell--FontSize: var(--pf-t--global--font--size--body--default); // set this explicitly for input heights to calc properly
26
29
 
30
+ // * Table tr
31
+ --#{$table}__tr--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
32
+ --#{$table}__tr--BorderBottomColor: var(--pf-t--global--border--color--default);
33
+
27
34
  // TODO: update these in order of appearance in scss declarations
28
35
 
29
36
  // * Table cell
30
37
  --#{$table}--cell--Padding--base: var(--pf-t--global--spacer--md);
31
- --#{$table}--cell--FontSize: var(--pf-t--global--font--size--body--default);
32
- --#{$table}--cell--FontWeight: var(--pf-t--global--font--weight--body);
33
- --#{$table}--cell--LineHeight: var(--pf-t--global--font--line-height--body);
34
- --#{$table}--cell--Color: var(--pf-t--global--text--color--regular);
35
38
  --#{$table}--cell--PaddingTop: var(--#{$table}--cell--Padding--base);
36
39
  --#{$table}--cell--PaddingRight: var(--#{$table}--cell--Padding--base);
37
40
  --#{$table}--cell--PaddingBottom: var(--#{$table}--cell--Padding--base);
38
41
  --#{$table}--cell--PaddingLeft: var(--#{$table}--cell--Padding--base);
42
+ --#{$table}--cell--FontSize: var(--pf-t--global--font--size--body--default);
43
+ --#{$table}--cell--FontWeight: var(--pf-t--global--font--weight--body);
44
+ --#{$table}--cell--LineHeight: var(--pf-t--global--font--line-height--body);
45
+ --#{$table}--cell--Color: var(--pf-t--global--text--color--regular);
39
46
  --#{$table}--cell--first-last-child--PaddingInline: var(--pf-t--global--spacer--sm);
40
47
  --#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft: var(--#{$table}--cell--Padding--base);
41
48
 
@@ -61,6 +68,9 @@
61
68
  --#{$table}--m-truncate--cell--MaxWidth: 1px;
62
69
  --#{$table}--m-truncate--cell--MinWidth: calc(5ch + var(--#{$table}--cell--PaddingRight) + var(--#{$table}--cell--PaddingLeft));
63
70
 
71
+ // * Table truncate
72
+ --#{$table}--m-truncate__text--MinWidth: 5ch;
73
+
64
74
  // * Table cell hidden visible
65
75
  --#{$table}--cell--hidden-visible--Display: table-cell;
66
76
 
@@ -84,7 +94,6 @@
84
94
  --#{$table}__button--BorderRadius: var(--pf-t--global--border--radius--small);
85
95
  --#{$table}__button--hover--Color: var(--pf-t--global--text--color--regular);
86
96
  --#{$table}__button--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
87
- --#{$table}__button--OutlineOffset: calc(var(--pf-t--global--border--width--strong) * -1);
88
97
 
89
98
  // * Table compact
90
99
  --#{$table}--m-compact__toggle--PaddingTop: 0;
@@ -98,6 +107,7 @@
98
107
  --#{$table}__favorite--c-button--FontSize: var(--pf-t--global--font--size--body--default);
99
108
  --#{$table}--cell--m-favorite--Color: var(--pf-t--global--text--color--subtle);
100
109
  --#{$table}__favorite--m-favorited--c-button--Color: var(--pf-t--global--color--favorite--clicked);
110
+ --#{$table}__favorite--m-favorited--c-button--hover--Color: var(--pf-t--global--color--favorite--clicked);
101
111
  --#{$table}__sort--m-favorite__button__text--Color: var(--pf-t--global--text--color--subtle);
102
112
  --#{$table}__sort--m-favorite__button--hover__text--Color: var(--pf-t--global--text--color--regular);
103
113
 
@@ -111,24 +121,32 @@
111
121
  --#{$table}__tr--m-ghost-row--Opacity: .4;
112
122
  --#{$table}__tr--m-ghost-row--BackgroundColor: var(--pf-t--global--background--color--primary--default);
113
123
 
114
- // * Table Action
124
+ // * Table action
115
125
  --#{$table}__action--PaddingTop: var(--pf-t--global--spacer--sm);
116
126
  --#{$table}__action--PaddingBottom: var(--pf-t--global--spacer--sm);
117
127
  --#{$table}__action--PaddingLeft: var(--pf-t--global--spacer--sm);
118
128
  --#{$table}__action--PaddingRight: var(--pf-t--global--spacer--sm);
119
129
 
120
- // * Table inline edit
130
+ // * Table inline edit action
121
131
  --#{$table}__inline-edit-action--PaddingTop: var(--pf-t--global--spacer--sm);
122
132
  --#{$table}__inline-edit-action--PaddingBottom: var(--pf-t--global--spacer--sm);
123
133
 
124
134
  // * Table expandable row
125
135
  --#{$table}__expandable-row--Transition: var(--#{$pf-global}--Transition); // TODO: update to token when available
136
+
137
+ // * Table expandable row content
126
138
  --#{$table}__expandable-row-content--PaddingTop: var(--pf-t--global--spacer--md);
127
139
  --#{$table}__expandable-row-content--PaddingBottom: var(--pf-t--global--spacer--md);
128
140
  --#{$table}__expandable-row-content--PaddingLeft: var(--pf-t--global--spacer--md);
129
141
  --#{$table}__expandable-row-content--PaddingRight: var(--pf-t--global--spacer--md);
142
+ --#{$table}__expandable-row-content--BorderRadius: var(--pf-t--global--border--radius--small);
130
143
  --#{$table}__expandable-row-content--Transition: var(--#{$pf-global}--Transition); // TODO: update to token when available
131
144
 
145
+ // * Table control row
146
+ --#{$table}__control-row--BackgroundColor: var(--pf-t--global--background--color--primary--default);
147
+ --#{$table}__control-row--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
148
+ --#{$table}__control-row__tbody--BorderBottomColor: var(--pf-t--global--border--color--default);
149
+
132
150
  // * Table icon inline
133
151
  --#{$table}__icon-inline--MarginRight: var(--pf-t--global--spacer--sm);
134
152
 
@@ -172,13 +190,21 @@
172
190
 
173
191
  // * Table compound expansion toggle button
174
192
  --#{$table}__compound-expansion-toggle__button--Color: var(--pf-t--global--icon--color--brand--default);
193
+ --#{$table}__compound-expansion-toggle__button--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
175
194
  --#{$table}__compound-expansion-toggle__button--hover--Color: var(--pf-t--global--icon--color--brand--hover);
195
+ --#{$table}__compound-expansion-toggle__button--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
196
+ --#{$table}__compound-expansion-toggle__button--expanded--BackgroundColor: var(--pf-t--global--background--color--action--plain--clicked);
176
197
 
177
198
  // * Table compound expansion toggle button after
178
199
  --#{$table}__compound-expansion-toggle__button--after--BorderColor: var(--pf-t--global--border--color--clicked);
179
200
  --#{$table}__compound-expansion-toggle__button--after--BorderTopWidth: 0;
201
+ --#{$table}__compound-expansion-toggle__button--hover--BorderColor: var(--pf-t--global--border--color--hover);
202
+ --#{$table}__compound-expansion-toggle__button--hover--after--BorderTopWidth: var(--pf-t--global--border--width--strong);
180
203
  --#{$table}__compound-expansion-toggle--m-expanded__button--after--BorderTopWidth: var(--pf-t--global--border--width--strong);
181
204
 
205
+ // * Compound expandable
206
+ --#{$table}--compound-expansion--m-expanded--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
207
+
182
208
  // * Table compact th
183
209
  --#{$table}--m-compact__th--PaddingTop: calc(var(--pf-t--global--spacer--sm) + var(--pf-t--global--spacer--xs));
184
210
  --#{$table}--m-compact__th--PaddingBottom: var(--pf-t--global--spacer--sm);
@@ -193,6 +219,10 @@
193
219
  --#{$table}--m-compact__action--PaddingTop: var(--pf-t--global--spacer--xs);
194
220
  --#{$table}--m-compact__action--PaddingBottom: var(--pf-t--global--spacer--xs);
195
221
 
222
+ // * Table expandable tbody
223
+ --#{$table}--m-expandable__tbody--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
224
+ --#{$table}--m-expandable__tbody--BorderBottomColor: var(--pf-t--global--border--color--default);
225
+
196
226
  // * Table expandable row expanded
197
227
  --#{$table}__expandable-row--m-expanded--BorderBottomColor: var(--pf-t--global--border--color--default);
198
228
 
@@ -200,43 +230,50 @@
200
230
  --#{$table}__tr--m-clickable--BackgroundColor: transparent;
201
231
  --#{$table}__tr--m-clickable--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
202
232
  --#{$table}__tr--m-clickable--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
233
+ --#{$table}__tr--m-clickable--m-expanded--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
203
234
 
204
235
  // * Table tr selected
205
- --#{$table}__tr--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
236
+ --#{$table}__tr--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
206
237
  --#{$table}__tr--m-selected--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
207
238
 
208
239
  // * Table tbody clickable
209
240
  --#{$table}__tbody--m-clickable--BackgroundColor: transparent;
210
241
  --#{$table}__tbody--m-clickable--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
211
- --#{$table}__tbody--m-clickable--hover--BackgroundColor: var(--pf-t--global--background--color--primary--default);
242
+ --#{$table}__tbody--m-clickable--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
243
+ --#{$table}__tbody--m-clickable--m-expanded--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
212
244
  --#{$table}__tbody--m-clickable--m-expanded--BorderColor: var(--pf-t--global--border--color--clicked);
213
245
 
214
246
  // * Table tbody selected
215
- --#{$table}__tbody--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--default);
247
+ --#{$table}__tbody--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
216
248
  --#{$table}__tbody--m-selected--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
217
249
 
218
250
  // * Table nested column header
219
251
  --#{$table}__thead--m-nested-column-header--button--OutlineOffset: #{pf-size-prem(-3px)};
220
252
  --#{$table}__thead--m-nested-column-header__tr--PaddingTop: var(--pf-t--global--spacer--xs);
221
- --#{$table}__thead--m-nested-column-header__tr--PaddingBottom: var(--pf-t--global--spacer--xs);
253
+ --#{$table}__thead--m-nested-column-header__tr--PaddingBottom: var(--pf-t--global--spacer--md);
222
254
 
223
255
  // * Table subhead
224
256
  --#{$table}__subhead--PaddingLeft: var(--pf-t--global--spacer--sm);
225
257
  --#{$table}__subhead--PaddingRight: var(--pf-t--global--spacer--sm);
226
258
  --#{$table}__subhead--Color: var(--pf-t--global--text--color--subtle);
227
259
 
260
+ // * Table subhead button
261
+ --#{$table}__nested-column-header__button--PaddingLeft: calc(var(--#{$table}__button--PaddingLeft) - var(--pf-t--global--spacer--sm));
262
+ --#{$table}__nested-column-header__button--PaddingRight: calc(var(--#{$table}__button--PaddingRight) - var(--pf-t--global--spacer--xs));
263
+
228
264
  // * Table striped
229
- --#{$table}--m-striped__tr--BackgroundColor: var(--pf-t--global--background--color--primary--default);
265
+ --#{$table}--m-striped__tr--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
230
266
 
231
- // * Table sticky
267
+ // * Table sticky header
232
268
  --#{$table}--m-sticky-header--cell--ZIndex: var(--pf-t--global--Zindex--xs);
269
+ --#{$table}--m-sticky-header--ZIndex: calc(var(--pf-t--global--Zindex--xs) + 1);
270
+ --#{$table}--m-sticky-header--border--ZIndex: calc(var(--pf-t--global--Zindex--xs) + 2);
233
271
  }
234
272
 
235
273
  // TODO: update grouping comments to // Table {element}
236
274
  // TODO: flatten the modifiers out ex: .#{$table}.pf-m-sticky-header {}
237
275
  // - Table
238
276
  .#{$table} {
239
- // Base
240
277
  width: 100%;
241
278
  background-color: var(--#{$table}--BackgroundColor);
242
279
 
@@ -244,6 +281,27 @@
244
281
  table-layout: fixed;
245
282
  }
246
283
 
284
+ // - Table sticky header
285
+ &.pf-m-sticky-header > .#{$table}__thead,
286
+ .#{$table}__thead.pf-m-nested-column-header {
287
+ position: sticky;
288
+ inset-block-start: 0;
289
+ z-index: var(--#{$table}--m-sticky-header--ZIndex);
290
+ background: var(--#{$table}--BackgroundColor);
291
+
292
+ &::before {
293
+ position: absolute;
294
+ inset-block-start: 0;
295
+ inset-block-end: 0;
296
+ inset-inline-start: 0;
297
+ inset-inline-end: 0;
298
+ z-index: var(--#{$table}--m-sticky-header--border--ZIndex);
299
+ pointer-events: none;
300
+ content: '';
301
+ border-block-end: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
302
+ }
303
+ }
304
+
247
305
  &.pf-m-sticky-header {
248
306
  position: relative;
249
307
 
@@ -253,51 +311,15 @@
253
311
  }
254
312
  }
255
313
 
256
- // standard sticky headers
257
- > thead:where(.#{$table}__thead):not(.pf-m-nested-column-header) {
258
- > tr:where(.#{$table}__tr) > :where(th, td) {
259
- position: sticky;
260
- inset-block-start: 0;
261
- background: var(--#{$table}--BackgroundColor);
262
-
263
- // stylelint-disable-next-line
264
- &::after {
265
- position: absolute;
266
- inset-block-end: 0;
267
- inset-inline-start: 0;
268
- inset-inline-end: 0;
269
- content: '';
270
- border-block-end: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
271
- }
272
- }
273
- }
274
-
275
- // nested column header
314
+ // - Table nested column header
276
315
  > .pf-m-nested-column-header {
277
316
  position: sticky;
278
317
  inset-block-start: 0;
279
- z-index: var(--pf-t--global--Zindex--xs);
280
318
  background: var(--#{$table}--BackgroundColor);
281
-
282
- > .pf-m-border-row {
283
- height: var(--#{$table}--border-width--base);
284
- background-color: var(--#{$table}--BorderColor);
285
- }
286
-
287
- // TODO: remove this block
288
- tr:where(.#{$table}__tr):not(:nth-last-child(2)) {
289
- // stylelint-disable max-nesting-depth
290
- th:where(.#{$table}__th),
291
- td:where(.#{$table}__td) {
292
- &:not([rowspan]) {
293
- --#{$table}--cell--PaddingBottom: var(--#{$table}__thead--m-nested-column-header__tr--PaddingBottom);
294
- }
295
- }
296
- // stylelint-enable
297
- }
298
319
  }
299
320
  }
300
321
 
322
+ // - Table not sticky header nested column header
301
323
  &:not(.pf-m-sticky-header) > .pf-m-nested-column-header {
302
324
  tr:where(.#{$table}__tr):not(:last-child) {
303
325
  border-block-end: 0; // hard reset tr borders in nested headers
@@ -313,10 +335,10 @@
313
335
  }
314
336
  }
315
337
 
316
- // For regular and expandable tables
338
+ // - Table striped
317
339
  // stylelint-disable
318
340
  &.pf-m-striped:not(.pf-m-expandable) > tbody:where(.#{$table}__tbody) > tr:where(.#{$table}__tr):nth-child(odd), // regular table
319
- &.pf-m-striped.pf-m-expandable > tbody:where(.#{$table}__tbody):nth-of-type(odd) > tr:where(.#{$table}__tr):not(.#{$table}__expandable-row), // expandable table
341
+ &.pf-m-striped.pf-m-expandable > tbody:where(.#{$table}__tbody):nth-of-type(odd) > tr:where(.#{$table}__tr), // expandable table
320
342
  > .pf-m-striped > tr:nth-child(odd), // tbody odd
321
343
  > .pf-m-striped-even > tr:nth-child(even), // tbody even
322
344
  tr:where(.#{$table}__tr).pf-m-striped { // tr
@@ -340,7 +362,6 @@
340
362
  tr:where(.#{$table}__tr) > :where(th, td) {
341
363
  @include pf-v5-hidden-visible(var(--#{$table}--cell--hidden-visible--Display));
342
364
 
343
- // set position relative for ::after borders
344
365
  position: relative;
345
366
  width: var(--#{$table}--cell--Width);
346
367
  min-width: var(--#{$table}--cell--MinWidth);
@@ -374,7 +395,7 @@
374
395
  text-align: center;
375
396
  }
376
397
 
377
- &:empty {
398
+ &:is(:empty, .#{$table}__cell-empty) {
378
399
  width: auto;
379
400
  min-width: 0;
380
401
  padding: 0;
@@ -419,7 +440,7 @@
419
440
  background-color: var(--#{$table}--BackgroundColor);
420
441
  }
421
442
 
422
- // - Table header cell
443
+ // - Table thead
423
444
  thead:where(.#{$table}__thead) {
424
445
  --#{$table}--cell--FontSize: var(--#{$table}__thead--cell--FontSize);
425
446
  --#{$table}--cell--FontWeight: var(--#{$table}__thead--cell--FontWeight);
@@ -443,15 +464,9 @@
443
464
 
444
465
  // - Table subhead
445
466
  .#{$table}__subhead {
446
- --#{$table}--cell--PaddingLeft: var(--#{$table}__subhead--PaddingLeft);
447
- --#{$table}--cell--PaddingRight: var(--#{$table}__subhead--PaddingRight);
448
467
  --#{$table}__sort__button__text--Color: var(--#{$table}__subhead--Color);
449
468
 
450
469
  color: var(--#{$table}__subhead--Color);
451
-
452
- .#{$table}__button {
453
- margin-inline-start: 0;
454
- }
455
470
  }
456
471
  }
457
472
 
@@ -539,6 +554,11 @@
539
554
 
540
555
  // stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
541
556
  &.pf-m-no-border-rows > tbody:where(.#{$table}__tbody) {
557
+ --#{$table}__tr--BorderBottomWidth: 0;
558
+ --#{$table}__tbody--BorderBottomWidth: 0;
559
+ --#{$table}--m-expandable__tbody--BorderBottomWidth: 0;
560
+ --#{$table}__control-row--BorderBottomWidth: 0;
561
+
542
562
  > tr:where(.#{$table}__tr) {
543
563
  border-block-end: 0;
544
564
  }
@@ -566,16 +586,13 @@
566
586
 
567
587
  // tr selected
568
588
  &.pf-m-selected {
569
- --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tr--m-selected--after--BorderLeftWidth);
570
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tr--m-selected--after--BorderLeftColor);
571
-
572
589
  position: relative;
573
590
  background-color: var(--#{$table}__tr--m-selected--BackgroundColor);
574
591
  outline-offset: var(--#{$table}__tr--m-selected--OutlineOffset);
575
592
  }
576
593
 
577
- &.pf-m-first-cell-offset-reset {
578
- --#{$table}--cell--first-last-child--PaddingLeft: var(--#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft);
594
+ &.pf-m-first-cell-offset-reset > :first-child {
595
+ padding-inline-start: var(--#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft);
579
596
  }
580
597
  }
581
598
 
@@ -587,20 +604,17 @@
587
604
  background-color: var(--#{$table}__tbody--m-clickable--BackgroundColor);
588
605
  outline-offset: var(--#{$table}__tbody--m-clickable--OutlineOffset);
589
606
 
590
- &.pf-m-expanded:not(.pf-m-selected) {
591
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-clickable--m-expanded--BorderColor);
592
- }
593
-
594
607
  &:is(:hover, :focus) {
595
608
  --#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--hover--BackgroundColor);
596
609
  }
610
+
611
+ &.pf-m-expanded {
612
+ --#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--m-expanded--BackgroundColor);
613
+ }
597
614
  }
598
615
 
599
616
  // - Table tbody expanded
600
617
  &.pf-m-selected {
601
- --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tbody--m-selected--after--BorderLeftWidth);
602
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-selected--after--BorderLeftColor);
603
-
604
618
  background-color: var(--#{$table}__tbody--m-selected--BackgroundColor);
605
619
  outline-offset: var(--#{$table}__tbody--m-selected--OutlineOffset);
606
620
  }
@@ -609,6 +623,16 @@
609
623
  &.pf-m-drag-over {
610
624
  overflow-anchor: none;
611
625
  }
626
+
627
+ // - Table table
628
+ .#{$table}{
629
+ background-color: transparent;
630
+
631
+ &,
632
+ :is(.#{$table}__tbody, .#{$table}__tr:last-child) {
633
+ border-block-end: 0;
634
+ }
635
+ }
612
636
  }
613
637
 
614
638
  // - Table text
@@ -629,6 +653,7 @@
629
653
  // Only apply these settings if specifically modified
630
654
  &.pf-m-truncate {
631
655
  --#{$table}--cell--MinWidth: 100%;
656
+ --#{$table}--text--MinWidth: var(--#{$table}--m-truncate__text--MinWidth);
632
657
 
633
658
  > :where(th, td) {
634
659
  overflow: var(--#{$table}--cell--Overflow);
@@ -638,13 +663,6 @@
638
663
  }
639
664
  }
640
665
 
641
- // - Table tr
642
- .#{$table}__tr {
643
- &.pf-m-border-row {
644
- border-block-end: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
645
- }
646
- }
647
-
648
666
  // - Table button
649
667
  .#{$table}__button {
650
668
  width: auto;
@@ -663,6 +681,7 @@
663
681
  background-color: var(--#{$table}__button--BackgroundColor);
664
682
  border: 0;
665
683
  border-radius: var(--#{$table}__button--BorderRadius);
684
+ outline-offset: var(--#{$table}__button--OutlineOffset);
666
685
 
667
686
  // Table table table button
668
687
  .#{$table} .#{$table} & {
@@ -796,14 +815,15 @@
796
815
 
797
816
  // - Table favorite
798
817
  .#{$table}__favorite {
799
- // --#{$table}--cell--PaddingLeft: var(--#{$table}__favorite--PaddingLeft);
800
- // --#{$table}--cell--PaddingRight: var(--#{$table}__favorite--PaddingRight);
801
-
802
818
  .#{$button} {
803
819
  --#{$button}--FontSize: var(--#{$table}__favorite--c-button--FontSize);
820
+ }
821
+
822
+ &.pf-m-favorited .#{$button} {
823
+ --#{$button}--m-plain--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
804
824
 
805
- @at-root .pf-m-favorited#{&} {
806
- --#{$button}--m-plain--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
825
+ &:is(:hover, :focus) {
826
+ --#{$button}--m-plain--hover--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
807
827
  }
808
828
  }
809
829
  }
@@ -845,6 +865,7 @@
845
865
 
846
866
  position: relative;
847
867
  padding: 0;
868
+ background-color: var(--#{$table}__compound-expansion-toggle__button--BackgroundColor);
848
869
 
849
870
  // show left border, use __text to truncate content
850
871
  &.pf-m-truncate {
@@ -874,8 +895,13 @@
874
895
  }
875
896
 
876
897
  &:hover,
877
- &:focus-within,
898
+ &:focus-within {
899
+ --#{$table}__compound-expansion-toggle__button--BackgroundColor: var(--#{$table}__compound-expansion-toggle__button--hover--BackgroundColor);
900
+ --#{$table}__compound-expansion-toggle__button--after--BorderTopWidth: var(--#{$table}__compound-expansion-toggle__button--hover--after--BorderTopWidth);
901
+ }
902
+
878
903
  &.pf-m-expanded {
904
+ --#{$table}__compound-expansion-toggle__button--BackgroundColor: var(--#{$table}__compound-expansion-toggle__button--expanded--BackgroundColor);
879
905
  --#{$table}__compound-expansion-toggle__button--after--BorderTopWidth: var(--#{$table}__compound-expansion-toggle--m-expanded__button--after--BorderTopWidth);
880
906
  }
881
907
 
@@ -927,9 +953,9 @@
927
953
  }
928
954
 
929
955
  &.pf-m-favorite {
930
- --#{$table}__sort__button__text--Color: var(--#{$table}__sort--m-favorite__button__text--Color);
931
- --#{$table}__sort__button--hover__text--Color: var(--#{$table}__sort--m-favorite__button--hover__text--Color);
932
- --#{$table}__sort--m-selected__button__text--Color: currentcolor;
956
+ .#{$table}__text {
957
+ font-size: var(--#{$table}__favorite--c-button--FontSize);
958
+ }
933
959
  }
934
960
  }
935
961
 
@@ -948,7 +974,6 @@
948
974
  position: relative;
949
975
  border-block-end: 0 solid transparent;
950
976
 
951
-
952
977
  &,
953
978
  td:where(.#{$table}__td):first-child::after {
954
979
  transition: var(--#{$table}__expandable-row--Transition);
@@ -966,7 +991,7 @@
966
991
  padding-block-start: 0;
967
992
  padding-inline-end: 0;
968
993
  padding-block-end: 0;
969
- padding-inline-start: var(--#{$table}__expandable-row--after--border-width--base); // set padding-left to adjust for left border.
994
+ padding-inline-start: 0;
970
995
 
971
996
  .#{$table}__expandable-row-content {
972
997
  padding: 0;
@@ -975,23 +1000,27 @@
975
1000
  }
976
1001
  // stylelint-enable
977
1002
 
1003
+ // - Table expandable row content
978
1004
  .#{$table}__expandable-row-content {
979
1005
  padding-block-start: var(--#{$table}__expandable-row-content--PaddingTop);
980
1006
  padding-block-end: var(--#{$table}__expandable-row-content--PaddingBottom);
1007
+ padding-inline-start: var(--#{$table}__expandable-row-content--PaddingLeft);
1008
+ padding-inline-end: var(--#{$table}__expandable-row-content--PaddingRight);
1009
+ background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
1010
+ border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
981
1011
  }
982
1012
 
983
- // Modifier - Expanded tr
1013
+ // - Table expandable row content expanded
984
1014
  &.pf-m-expanded {
985
1015
  border-block-end-color: var(--#{$table}__expandable-row--m-expanded--BorderBottomColor);
986
1016
  border-block-end-width: var(--#{$table}--border-width--base);
987
-
988
1017
  }
989
1018
 
990
1019
  &:not(.pf-m-expanded) {
991
1020
  display: none;
992
1021
  }
993
1022
 
994
- // Table table
1023
+ // - Table expandable row tr last-child
995
1024
  tr:last-child {
996
1025
  border-block-end: 0;
997
1026
  }
@@ -1002,6 +1031,7 @@
1002
1031
  --#{$table}--cell--PaddingTop: var(--#{$table}--m-compact--cell--PaddingTop);
1003
1032
  --#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact--cell--PaddingBottom);
1004
1033
 
1034
+ // - Table compact table tr
1005
1035
  tr:where(.#{$table}__tr) {
1006
1036
  &:not(.#{$table}__expandable-row) {
1007
1037
  --#{$table}--cell--PaddingTop: var(--#{$table}--m-compact--cell--PaddingTop);
@@ -1009,7 +1039,7 @@
1009
1039
  }
1010
1040
  }
1011
1041
 
1012
- // Thead
1042
+ // - Table compact thead
1013
1043
  thead:where(.#{$table}__thead) {
1014
1044
  th:where(.#{$table}__th),
1015
1045
  .#{$table}__toggle {
@@ -1033,20 +1063,72 @@
1033
1063
  }
1034
1064
  }
1035
1065
 
1066
+ // - Table thead
1036
1067
  .#{$table}__thead {
1068
+ --#{$table}__tr--BorderBottomWidth: 0;
1069
+ --#{$table}__toggle--PaddingBottom: var(--#{$table}__thead__toggle--PaddingBottom);
1070
+
1037
1071
  vertical-align: bottom;
1072
+
1073
+ // - Table nested column header button
1074
+ &.pf-m-nested-column-header {
1075
+ .#{$table}__button {
1076
+ --#{$table}__button--PaddingLeft: var(--#{$table}__nested-column-header__button--PaddingLeft);
1077
+ --#{$table}__button--PaddingRight: var(--#{$table}__nested-column-header__button--PaddingRight);
1078
+
1079
+ // margin to align with thead padding
1080
+ margin-inline-end: calc(var(--#{$table}__button--PaddingLeft) * -1);
1081
+ }
1082
+ }
1038
1083
  }
1039
1084
 
1085
+ // - Table tbody
1040
1086
  .#{$table}__tbody {
1041
1087
  vertical-align: top;
1042
1088
 
1043
- .#{$table}__tr {
1089
+ // TODO: make this a class `compound expansion content`
1090
+ .#{$table}__control-row ~ .#{$table}__expandable-row.pf-m-expanded {
1091
+ background-color: var(--#{$table}--compound-expansion--m-expanded--BackgroundColor);
1092
+ }
1093
+ }
1094
+
1095
+ // Table table tbody expandable
1096
+ .#{$table}.pf-m-expandable {
1097
+ .#{$table}__tr.pf-m-expanded {
1098
+ border-block-end: 0;
1099
+ }
1100
+
1101
+ // - Table tbody
1102
+ .#{$table}__tbody {
1103
+ border-block-end: var(--#{$table}__tr--BorderBottomWidth) solid var(--#{$table}__tr--BorderBottomColor);
1104
+ }
1105
+
1106
+ // - Table tbody - Table tr
1107
+ .#{$table}__tbody.pf-m-expanded {
1108
+ border-block-end: var(--#{$table}__tr--BorderBottomWidth) solid var(--#{$table}__tr--BorderBottomColor);
1109
+
1110
+ // - Table tbody table control row
1111
+ .#{$table}__control-row {
1112
+ background-color: var(--#{$table}__control-row--BackgroundColor);
1113
+ border-block-end: var(--#{$table}__control-row--BorderBottomWidth) solid var(--#{$table}__control-row__tbody--BorderBottomColor);
1114
+ }
1115
+ }
1116
+ }
1117
+
1118
+ // - Table tr
1119
+ .#{$table}__tr {
1120
+ border-block-end: var(--#{$table}__tr--BorderBottomWidth) solid var(--#{$table}__tr--BorderBottomColor);
1121
+
1122
+ .#{$table}__thead & {
1123
+ border-block-end: 0;
1124
+ }
1125
+
1126
+ &.pf-m-border-row {
1044
1127
  border-block-end: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
1045
1128
  }
1046
1129
  }
1047
1130
 
1048
- // replace this when inline text with icon is in place
1049
- // Icon inline
1131
+ // - Table icon inline
1050
1132
  .#{$table}__icon-inline {
1051
1133
  display: flex;
1052
1134
  align-items: center;
@@ -14,8 +14,8 @@
14
14
 
15
15
  #ws-core-c-navigation-nav-with-flyout .pf-v6-c-menu.pf-m-flyout.pf-m-nav {
16
16
  position: absolute;
17
- inset-block-start: 168px;
18
- inset-inline-start: 256px;
17
+ inset-block-start: 151px;
18
+ inset-inline-start: 265px;
19
19
  }
20
20
 
21
21
  #ws-core-c-navigation-horizontal .ws-preview-html,