@patternfly/patternfly 5.0.0-alpha.53 → 5.0.0-alpha.55

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 (49) hide show
  1. package/components/FormControl/form-control.css +164 -214
  2. package/components/FormControl/form-control.scss +175 -281
  3. package/components/FormControl/themes/dark/form-control.scss +1 -2
  4. package/components/NumberInput/number-input.css +0 -1
  5. package/components/NumberInput/number-input.scss +0 -1
  6. package/components/Table/table-grid.css +380 -391
  7. package/components/Table/table-grid.scss +97 -92
  8. package/components/Table/table-tree-view.css +254 -254
  9. package/components/Table/table-tree-view.scss +30 -30
  10. package/components/Table/table.css +232 -232
  11. package/components/Table/table.scss +265 -255
  12. package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -28
  13. package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +52 -46
  14. package/docs/components/DatePicker/examples/DatePicker.md +55 -49
  15. package/docs/components/FileUpload/examples/FileUpload.md +105 -93
  16. package/docs/components/Form/examples/Form.md +165 -145
  17. package/docs/components/FormControl/examples/FormControl.md +439 -475
  18. package/docs/components/InlineEdit/examples/InlineEdit.md +137 -104
  19. package/docs/components/InputGroup/examples/InputGroup.md +84 -74
  20. package/docs/components/Login/examples/Login.md +92 -82
  21. package/docs/components/NumberInput/examples/NumberInput.md +99 -87
  22. package/docs/components/Pagination/examples/Pagination.md +100 -89
  23. package/docs/components/Select/examples/Select.md +77 -68
  24. package/docs/components/Slider/examples/Slider.md +31 -44
  25. package/docs/components/Table/examples/Table.md +6839 -3703
  26. package/docs/components/TextInputGroup/examples/TextInputGroup.md +60 -52
  27. package/docs/components/Toolbar/examples/Toolbar.md +18 -16
  28. package/docs/components/Wizard/examples/Wizard.md +280 -245
  29. package/docs/demos/Alert/examples/Alert.md +69 -57
  30. package/docs/demos/Button/examples/Button.md +54 -48
  31. package/docs/demos/Card/examples/Card.md +73 -34
  32. package/docs/demos/CardView/examples/CardView.md +9 -8
  33. package/docs/demos/DataList/examples/DataList.md +223 -84
  34. package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -23
  35. package/docs/demos/Form/examples/BasicForms.md +247 -227
  36. package/docs/demos/HelperText/examples/HelperText.md +37 -33
  37. package/docs/demos/Modal/examples/Modal.md +14 -21
  38. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +11 -10
  39. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -40
  40. package/docs/demos/Table/examples/Table.md +2765 -1397
  41. package/docs/demos/Tabs/examples/Tabs.md +203 -50
  42. package/docs/demos/Toolbar/examples/Toolbar.md +300 -137
  43. package/docs/demos/Wizard/examples/Wizard.md +448 -392
  44. package/package.json +3 -3
  45. package/patternfly-no-globals.css +1027 -1089
  46. package/patternfly.css +1027 -1089
  47. package/patternfly.min.css +1 -1
  48. package/patternfly.min.css.map +1 -1
  49. package/docs/components/FormControl/examples/FormControl.css +0 -5
@@ -16,30 +16,30 @@
16
16
  --#{$table}--border-width--base: var(--#{$pf-global}--BorderWidth--sm);
17
17
 
18
18
  // Caption
19
- --#{$table}-caption--FontSize: var(--#{$pf-global}--FontSize--sm);
20
- --#{$table}-caption--Color: var(--#{$pf-global}--Color--200);
21
- --#{$table}-caption--PaddingTop: var(--#{$pf-global}--spacer--md);
22
- --#{$table}-caption--PaddingRight: var(--#{$pf-global}--spacer--lg);
23
- --#{$table}-caption--PaddingBottom: var(--#{$pf-global}--spacer--md);
24
- --#{$table}-caption--PaddingLeft: var(--#{$pf-global}--spacer--lg);
25
- --#{$table}-caption--xl--PaddingRight: var(--#{$pf-global}--spacer--md);
26
- --#{$table}-caption--xl--PaddingLeft: var(--#{$pf-global}--spacer--md);
19
+ --#{$table}__caption--FontSize: var(--#{$pf-global}--FontSize--sm);
20
+ --#{$table}__caption--Color: var(--#{$pf-global}--Color--200);
21
+ --#{$table}__caption--PaddingTop: var(--#{$pf-global}--spacer--md);
22
+ --#{$table}__caption--PaddingRight: var(--#{$pf-global}--spacer--lg);
23
+ --#{$table}__caption--PaddingBottom: var(--#{$pf-global}--spacer--md);
24
+ --#{$table}__caption--PaddingLeft: var(--#{$pf-global}--spacer--lg);
25
+ --#{$table}__caption--xl--PaddingRight: var(--#{$pf-global}--spacer--md);
26
+ --#{$table}__caption--xl--PaddingLeft: var(--#{$pf-global}--spacer--md);
27
27
 
28
28
  @media screen and (max-width: $pf-v5-global--breakpoint--xl) {
29
- --#{$table}-caption--PaddingRight: var(--#{$table}-caption--xl--PaddingRight);
30
- --#{$table}-caption--PaddingLeft: var(--#{$table}-caption--xl--PaddingLeft);
29
+ --#{$table}__caption--PaddingRight: var(--#{$table}__caption--xl--PaddingRight);
30
+ --#{$table}__caption--PaddingLeft: var(--#{$table}__caption--xl--PaddingLeft);
31
31
  }
32
32
 
33
33
  // Thead
34
- --#{$table}--thead--cell--FontSize: var(--#{$pf-global}--FontSize--sm);
35
- --#{$table}--thead--cell--FontWeight: var(--#{$pf-global}--FontWeight--bold);
34
+ --#{$table}__thead--cell--FontSize: var(--#{$pf-global}--FontSize--sm);
35
+ --#{$table}__thead--cell--FontWeight: var(--#{$pf-global}--FontWeight--bold);
36
36
 
37
37
  // Tbody cell
38
- --#{$table}--tbody--cell--PaddingTop: var(--#{$pf-global}--spacer--lg);
39
- --#{$table}--tbody--cell--PaddingBottom: var(--#{$pf-global}--spacer--lg);
38
+ --#{$table}__tbody--cell--PaddingTop: var(--#{$pf-global}--spacer--lg);
39
+ --#{$table}__tbody--cell--PaddingBottom: var(--#{$pf-global}--spacer--lg);
40
40
 
41
41
  // Tr
42
- --#{$table}--tr--BoxShadow--top--base: 0 #{pf-size-prem(-3px)} #{pf-size-prem(4px)} #{pf-size-prem(-2px)} rgba(3,3,3,.08);
42
+ --#{$table}__tr--BoxShadow--top--base: 0 #{pf-size-prem(-3px)} #{pf-size-prem(4px)} #{pf-size-prem(-2px)} rgba(3,3,3,.08);
43
43
 
44
44
  // Th / td shared variables
45
45
  --#{$table}--cell--Padding--base: var(--#{$pf-global}--spacer--md);
@@ -54,7 +54,7 @@
54
54
  --#{$table}--cell--first-last-child--PaddingRight: var(--#{$pf-global}--spacer--md);
55
55
  --#{$table}--cell--first-last-child--xl--PaddingLeft: var(--#{$pf-global}--spacer--lg);
56
56
  --#{$table}--cell--first-last-child--xl--PaddingRight: var(--#{$pf-global}--spacer--lg);
57
- --#{$table}--tr--m-first-cell-offset-reset--cell--PaddingLeft: var(--#{$table}--cell--Padding--base);
57
+ --#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft: var(--#{$table}--cell--Padding--base);
58
58
 
59
59
  // Default cell variables
60
60
  --#{$table}--cell--MinWidth: 0;
@@ -193,7 +193,7 @@
193
193
  --#{$table}__sort__button--focus__sort-indicator--Color: var(--#{$pf-global}--Color--100);
194
194
 
195
195
  // Help
196
- --#{$table}--th--m-help--MinWidth: 11ch;
196
+ --#{$table}__th--m-help--MinWidth: 11ch;
197
197
 
198
198
  // Table header popover
199
199
  --#{$table}__column-help--MarginLeft: var(--#{$pf-global}--spacer--xs);
@@ -225,8 +225,8 @@
225
225
  --#{$table}__compound-expansion-toggle__button--after--Left: calc(var(--#{$table}__compound-expansion-toggle__button--before--border-width--base) * -1);
226
226
 
227
227
  // Compact table
228
- --#{$table}--m-compact-th--PaddingTop: calc(var(--#{$pf-global}--spacer--sm) + var(--#{$pf-global}--spacer--xs));
229
- --#{$table}--m-compact-th--PaddingBottom: var(--#{$pf-global}--spacer--sm);
228
+ --#{$table}--m-compact__th--PaddingTop: calc(var(--#{$pf-global}--spacer--sm) + var(--#{$pf-global}--spacer--xs));
229
+ --#{$table}--m-compact__th--PaddingBottom: var(--#{$pf-global}--spacer--sm);
230
230
  --#{$table}--m-compact--cell--PaddingTop: var(--#{$pf-global}--spacer--sm);
231
231
  --#{$table}--m-compact--cell--PaddingRight: var(--#{$pf-global}--spacer--sm);
232
232
  --#{$table}--m-compact--cell--PaddingBottom: var(--#{$pf-global}--spacer--sm);
@@ -249,58 +249,58 @@
249
249
  --#{$table}__expandable-row--m-expanded--BorderBottomColor: var(--#{$pf-global}--BorderColor--100);
250
250
 
251
251
  // tr clickable
252
- --#{$table}--tr--m-clickable--BoxShadow--top: var(--#{$table}--tr--BoxShadow--top--base);
253
- --#{$table}--tr--m-clickable--BackgroundColor: transparent;
254
- --#{$table}--tr--m-clickable--BoxShadow: none;
255
- --#{$table}--tr--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
256
- --#{$table}--tr--m-clickable--hover--BoxShadow: var(--#{$table}--tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
257
- --#{$table}--tr--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
258
- --#{$table}--tr--m-clickable--focus--BoxShadow: var(--#{$table}--tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
259
- --#{$table}--tr--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
260
- --#{$table}--tr--m-clickable--active--BoxShadow: var(--#{$table}--tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
261
- --#{$table}--tr--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
262
- --#{$table}--tr--m-clickable--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
252
+ --#{$table}__tr--m-clickable--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
253
+ --#{$table}__tr--m-clickable--BackgroundColor: transparent;
254
+ --#{$table}__tr--m-clickable--BoxShadow: none;
255
+ --#{$table}__tr--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
256
+ --#{$table}__tr--m-clickable--hover--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
257
+ --#{$table}__tr--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
258
+ --#{$table}__tr--m-clickable--focus--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
259
+ --#{$table}__tr--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
260
+ --#{$table}__tr--m-clickable--active--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
261
+ --#{$table}__tr--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
262
+ --#{$table}__tr--m-clickable--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
263
263
 
264
264
  // tr selected
265
- --#{$table}--tr--m-selected--BoxShadow--top: var(--#{$table}--tr--BoxShadow--top--base);
266
- --#{$table}--tr--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
267
- --#{$table}--tr--m-selected--BoxShadow: var(--#{$table}--tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
268
- --#{$table}--tr--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
269
- --#{$table}--tr--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
270
- --#{$table}--tr--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
271
- --#{$table}--tr--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
272
- --#{$table}--tr--m-selected--hover--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
273
- --#{$table}--tr--m-selected--tr--m-selected--hover--BoxShadow: var(--#{$table}--tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
265
+ --#{$table}__tr--m-selected--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
266
+ --#{$table}__tr--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
267
+ --#{$table}__tr--m-selected--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
268
+ --#{$table}__tr--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
269
+ --#{$table}__tr--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
270
+ --#{$table}__tr--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
271
+ --#{$table}__tr--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
272
+ --#{$table}__tr--m-selected--hover__tr--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
273
+ --#{$table}__tr--m-selected__tr--m-selected--hover--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
274
274
 
275
275
  // tbody clickable
276
- --#{$table}--tbody--m-clickable--BoxShadow--top: var(--#{$table}--tr--BoxShadow--top--base);
277
- --#{$table}--tbody--m-clickable--BoxShadow: none;
278
- --#{$table}--tbody--m-clickable--BackgroundColor: transparent;
279
- --#{$table}--tbody--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
280
- --#{$table}--tbody--m-clickable--hover--BoxShadow: var(--#{$table}--tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
281
- --#{$table}--tbody--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
282
- --#{$table}--tbody--m-clickable--focus--BoxShadow: var(--#{$table}--tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
283
- --#{$table}--tbody--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
284
- --#{$table}--tbody--m-clickable--active--BoxShadow: var(--#{$table}--tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
285
- --#{$table}--tbody--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
286
- --#{$table}--tbody--m-clickable--m-expanded--BorderColor: var(--#{$pf-global}--active-color--400);
287
- --#{$table}--tbody--m-clickable--m-selected--hover--tr--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
276
+ --#{$table}__tbody--m-clickable--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
277
+ --#{$table}__tbody--m-clickable--BoxShadow: none;
278
+ --#{$table}__tbody--m-clickable--BackgroundColor: transparent;
279
+ --#{$table}__tbody--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
280
+ --#{$table}__tbody--m-clickable--hover--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
281
+ --#{$table}__tbody--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
282
+ --#{$table}__tbody--m-clickable--focus--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
283
+ --#{$table}__tbody--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
284
+ --#{$table}__tbody--m-clickable--active--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
285
+ --#{$table}__tbody--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
286
+ --#{$table}__tbody--m-clickable--m-expanded--BorderColor: var(--#{$pf-global}--active-color--400);
287
+ --#{$table}__tbody--m-clickable--m-selected--hover__tr--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
288
288
 
289
289
  // tbody selected
290
- --#{$table}--tbody--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
291
- --#{$table}--tbody--m-selected--BoxShadow--top: var(--#{$table}--tr--BoxShadow--top--base);
292
- --#{$table}--tbody--m-selected--BoxShadow: var(--#{$table}--tbody--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
293
- --#{$table}--tbody--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
294
- --#{$table}--tbody--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
295
- --#{$table}--tbody--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
296
- --#{$table}--tbody--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
297
- --#{$table}--tbody--m-selected--hover--tbody--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
298
- --#{$table}--tbody--m-selected--tbody--m-selected--hover--BoxShadow: var(--#{$table}--tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
290
+ --#{$table}__tbody--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
291
+ --#{$table}__tbody--m-selected--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
292
+ --#{$table}__tbody--m-selected--BoxShadow: var(--#{$table}__tbody--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
293
+ --#{$table}__tbody--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
294
+ --#{$table}__tbody--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
295
+ --#{$table}__tbody--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
296
+ --#{$table}__tbody--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
297
+ --#{$table}__tbody--m-selected--hover__tbody--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
298
+ --#{$table}__tbody--m-selected__tbody--m-selected--hover--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
299
299
 
300
300
  // Nested column header
301
- --#{$table}--thead--m-nested-column-header--button--OutlineOffset: #{pf-size-prem(-3px)};
302
- --#{$table}--thead--m-nested-column-header--tr--PaddingTop: var(--#{$pf-global}--spacer--xs);
303
- --#{$table}--thead--m-nested-column-header--tr--PaddingBottom: var(--#{$pf-global}--spacer--xs);
301
+ --#{$table}__thead--m-nested-column-header--button--OutlineOffset: #{pf-size-prem(-3px)};
302
+ --#{$table}__thead--m-nested-column-header__tr--PaddingTop: var(--#{$pf-global}--spacer--xs);
303
+ --#{$table}__thead--m-nested-column-header__tr--PaddingBottom: var(--#{$pf-global}--spacer--xs);
304
304
 
305
305
  // Subhead
306
306
  --#{$table}__subhead--Color: var(--#{$pf-global}--Color--200);
@@ -331,7 +331,7 @@
331
331
  &.pf-m-sticky-header {
332
332
  position: relative;
333
333
 
334
- > thead > tr {
334
+ thead:where(.#{$table}__thead) tr:where(.#{$table}__tr) {
335
335
  border-bottom: 0;
336
336
 
337
337
  > * {
@@ -340,8 +340,8 @@
340
340
  }
341
341
 
342
342
  // standard sticky headers
343
- > thead:not(.pf-m-nested-column-header) {
344
- > tr > * {
343
+ > thead:where(.#{$table}__thead):not(.pf-m-nested-column-header) {
344
+ > tr:where(.#{$table}__tr) > * {
345
345
  position: sticky;
346
346
  top: 0;
347
347
  background: var(--#{$table}--BackgroundColor);
@@ -370,12 +370,12 @@
370
370
  background-color: var(--#{$table}--BorderColor);
371
371
  }
372
372
 
373
- tr:not(:nth-last-child(2)) {
373
+ tr:where(.#{$table}__tr):not(:nth-last-child(2)) {
374
374
  // stylelint-disable max-nesting-depth
375
- th,
376
- td {
375
+ th:where(.#{$table}__th),
376
+ td:where(.#{$table}__td) {
377
377
  &:not([rowspan]) {
378
- --#{$table}--cell--PaddingBottom: var(--#{$table}--thead--m-nested-column-header--tr--PaddingBottom);
378
+ --#{$table}--cell--PaddingBottom: var(--#{$table}__thead--m-nested-column-header__tr--PaddingBottom);
379
379
  }
380
380
  }
381
381
  // stylelint-enable
@@ -384,14 +384,14 @@
384
384
  }
385
385
 
386
386
  &:not(.pf-m-sticky-header) > .pf-m-nested-column-header {
387
- tr:not(:last-child) {
387
+ tr:where(.#{$table}__tr):not(:last-child) {
388
388
  border-bottom: 0; // hard reset tr borders in nested headers
389
389
 
390
390
  // stylelint-disable max-nesting-depth
391
- th,
392
- td {
391
+ th:where(.#{$table}__th),
392
+ td:where(.#{$table}__td) {
393
393
  &:not([rowspan]) {
394
- --#{$table}--cell--PaddingBottom: var(--#{$table}--thead--m-nested-column-header--tr--PaddingBottom);
394
+ --#{$table}--cell--PaddingBottom: var(--#{$table}__thead--m-nested-column-header__tr--PaddingBottom);
395
395
  }
396
396
  }
397
397
  // stylelint-enable
@@ -400,11 +400,11 @@
400
400
 
401
401
  // For regular and expandable tables
402
402
  // stylelint-disable
403
- &.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), // regular table
404
- &.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.#{$table}__expandable-row), // expandable table
403
+ &.pf-m-striped:not(.pf-m-expandable) > tbody:where(.#{$table}__tbody) > tr:where(.#{$table}__tr):nth-child(odd), // regular table
404
+ &.pf-m-striped.pf-m-expandable > tbody:where(.#{$table}__tbody):nth-of-type(odd) > tr:where(.#{$table}__tr):not(.#{$table}__expandable-row), // expandable table
405
405
  > .pf-m-striped > tr:nth-child(odd), // tbody odd
406
406
  > .pf-m-striped-even > tr:nth-child(even), // tbody even
407
- tr.pf-m-striped { // tr
407
+ tr:where(.#{$table}__tr).pf-m-striped { // tr
408
408
  --#{$table}__sticky-column--BackgroundColor: var(--#{$table}--m-striped__tr--BackgroundColor);
409
409
 
410
410
  background: var(--#{$table}--m-striped__tr--BackgroundColor);
@@ -413,7 +413,7 @@
413
413
 
414
414
  // Standard table row (non-expandable)
415
415
  // exclude expandable rows
416
- tr:not(.#{$table}__expandable-row) {
416
+ tr:where(.#{$table}__tr):not(.#{$table}__expandable-row) {
417
417
  border-bottom: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
418
418
 
419
419
  // stylelint-disable-next-line
@@ -424,7 +424,7 @@
424
424
  }
425
425
 
426
426
  // Table cell
427
- tr > * {
427
+ tr:where(.#{$table}__tr) > * {
428
428
  @include pf-v5-hidden-visible(var(--#{$table}--cell--hidden-visible--Display));
429
429
 
430
430
  // set position relative for ::before/::after borders
@@ -495,32 +495,32 @@
495
495
  }
496
496
 
497
497
  // Table caption
498
- caption {
499
- padding-top: var(--#{$table}-caption--PaddingTop);
500
- padding-bottom: var(--#{$table}-caption--PaddingBottom);
501
- padding-left: var(--#{$table}-caption--PaddingLeft);
502
- font-size: var(--#{$table}-caption--FontSize);
503
- color: var(--#{$table}-caption--Color);
498
+ caption:where(.#{$table}__caption) {
499
+ padding-top: var(--#{$table}__caption--PaddingTop);
500
+ padding-bottom: var(--#{$table}__caption--PaddingBottom);
501
+ padding-left: var(--#{$table}__caption--PaddingLeft);
502
+ font-size: var(--#{$table}__caption--FontSize);
503
+ color: var(--#{$table}__caption--Color);
504
504
  text-align: left;
505
505
  background-color: var(--#{$table}--BackgroundColor);
506
506
  }
507
507
 
508
508
  // Table header cell
509
- thead {
510
- --#{$table}--cell--FontSize: var(--#{$table}--thead--cell--FontSize);
511
- --#{$table}--cell--FontWeight: var(--#{$table}--thead--cell--FontWeight);
509
+ thead:where(.#{$table}__thead) {
510
+ --#{$table}--cell--FontSize: var(--#{$table}__thead--cell--FontSize);
511
+ --#{$table}--cell--FontWeight: var(--#{$table}__thead--cell--FontWeight);
512
512
 
513
513
  vertical-align: bottom;
514
514
 
515
515
  // stylelint-disable
516
516
  &.pf-m-nested-column-header {
517
- button {
518
- outline-offset: var(--#{$table}--thead--m-nested-column-header--button--OutlineOffset);
517
+ button:where(.#{$button}) {
518
+ outline-offset: var(--#{$table}__thead--m-nested-column-header--button--OutlineOffset);
519
519
  }
520
520
 
521
- th,
522
- td,
523
- input {
521
+ th:where(.#{$table}__th),
522
+ td:where(.#{$table}__td),
523
+ input:where(.#{$check}__input) {
524
524
  vertical-align: middle;
525
525
  }
526
526
 
@@ -529,15 +529,14 @@
529
529
  align-items: center;
530
530
  }
531
531
 
532
- tr:not(:first-child) {
533
- th,
534
- td {
532
+ tr:where(.#{$table}__tr):not(:first-child) {
533
+ th:where(.#{$table}__th),
534
+ td:where(.#{$table}__td) {
535
535
  &:not([rowspan]) {
536
- --#{$table}--cell--PaddingTop: var(--#{$table}--thead--m-nested-column-header--tr--PaddingTop);
536
+ --#{$table}--cell--PaddingTop: var(--#{$table}__thead--m-nested-column-header__tr--PaddingTop);
537
537
  }
538
538
  }
539
539
  }
540
-
541
540
  }
542
541
  // stylelint-enable
543
542
 
@@ -550,18 +549,18 @@
550
549
 
551
550
  // Table body cell
552
551
  // stylelint-disable
553
- tbody {
554
- --#{$table}--cell--PaddingTop: var(--#{$table}--tbody--cell--PaddingTop);
555
- --#{$table}--cell--PaddingBottom: var(--#{$table}--tbody--cell--PaddingBottom);
552
+ tbody:where(.#{$table}__tbody) {
553
+ --#{$table}--cell--PaddingTop: var(--#{$table}__tbody--cell--PaddingTop);
554
+ --#{$table}--cell--PaddingBottom: var(--#{$table}__tbody--cell--PaddingBottom);
556
555
 
557
- > tr > * {
556
+ > tr:where(.#{$table}__tr) > * {
558
557
  overflow-wrap: break-word;
559
558
  vertical-align: baseline;
560
559
  }
561
560
 
562
561
  // Border treatment
563
562
  // using first child as row does not calculate height appropriately
564
- > tr > :first-child::after {
563
+ > tr:where(.#{$table}__tr) > :first-child::after {
565
564
  position: absolute;
566
565
 
567
566
  // offset top to extend above tr border
@@ -577,7 +576,7 @@
577
576
 
578
577
  // Check table cell
579
578
  .#{$table}__check {
580
- input {
579
+ input:where(.#{$check}__input) {
581
580
  margin-top: var(--#{$table}__check--input--MarginTop);
582
581
  vertical-align: top;
583
582
  }
@@ -607,53 +606,58 @@
607
606
  min-width: var(--#{$table}__sort--MinWidth);
608
607
  }
609
608
 
610
- .pf-m-help {
611
- min-width: var(--#{$table}--th--m-help--MinWidth);
609
+ :where(.#{$table}__th, .#{$table}__td) {
610
+ &.pf-m-help {
611
+ min-width: var(--#{$table}__th--m-help--MinWidth);
612
+ }
612
613
  }
613
614
 
614
- thead,
615
- .pf-m-truncate {
616
- --#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
617
- --#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
618
- --#{$table}--cell--Overflow: hidden;
619
- --#{$table}--cell--TextOverflow: ellipsis;
620
- --#{$table}--cell--WhiteSpace: nowrap;
621
- }
615
+ :where([class*='#{$table}']),
616
+ :where(&) > :is(thead, tbody) {
617
+ @at-root .#{$table} > thead,
618
+ &.pf-m-truncate {
619
+ --#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
620
+ --#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
621
+ --#{$table}--cell--Overflow: hidden;
622
+ --#{$table}--cell--TextOverflow: ellipsis;
623
+ --#{$table}--cell--WhiteSpace: nowrap;
624
+ }
622
625
 
623
- .pf-m-wrap {
624
- --#{$table}--cell--MinWidth: 0;
625
- --#{$table}--cell--MaxWidth: none;
626
- --#{$table}--cell--Overflow: visible;
627
- --#{$table}--cell--TextOverflow: clip;
628
- --#{$table}--cell--WhiteSpace: normal;
629
- }
626
+ &.pf-m-wrap {
627
+ --#{$table}--cell--MinWidth: 0;
628
+ --#{$table}--cell--MaxWidth: none;
629
+ --#{$table}--cell--Overflow: visible;
630
+ --#{$table}--cell--TextOverflow: clip;
631
+ --#{$table}--cell--WhiteSpace: normal;
632
+ }
630
633
 
631
- .pf-m-nowrap {
632
- --#{$table}--cell--MinWidth: 0;
633
- --#{$table}--cell--MaxWidth: none;
634
- --#{$table}--cell--Overflow: visible;
635
- --#{$table}--cell--TextOverflow: clip;
636
- --#{$table}--cell--WhiteSpace: nowrap;
637
- }
634
+ &.pf-m-nowrap {
635
+ --#{$table}--cell--MinWidth: 0;
636
+ --#{$table}--cell--MaxWidth: none;
637
+ --#{$table}--cell--Overflow: visible;
638
+ --#{$table}--cell--TextOverflow: clip;
639
+ --#{$table}--cell--WhiteSpace: nowrap;
640
+ }
638
641
 
639
- .#{$table}__icon,
640
- .pf-m-fit-content {
641
- --#{$table}--cell--MinWidth: fit-content;
642
- --#{$table}--cell--MaxWidth: none;
643
- --#{$table}--cell--Width: 1%;
644
- --#{$table}--cell--Overflow: visible;
645
- --#{$table}--cell--TextOverflow: clip;
646
- --#{$table}--cell--WhiteSpace: nowrap;
647
- }
642
+ .#{$table}__icon,
643
+ &.pf-m-fit-content {
644
+ --#{$table}--cell--MinWidth: fit-content;
645
+ --#{$table}--cell--MaxWidth: none;
646
+ --#{$table}--cell--Width: 1%;
647
+ --#{$table}--cell--Overflow: visible;
648
+ --#{$table}--cell--TextOverflow: clip;
649
+ --#{$table}--cell--WhiteSpace: nowrap;
650
+ }
648
651
 
649
- .pf-m-break-word {
650
- --#{$table}--cell--WordBreak: break-word;
651
- --#{$table}--cell--WhiteSpace: normal;
652
+ &.pf-m-break-word {
653
+ --#{$table}--cell--WordBreak: break-word;
654
+ --#{$table}--cell--WhiteSpace: normal;
655
+ }
652
656
  }
653
657
 
654
658
  // stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
655
- &.pf-m-no-border-rows > tbody {
656
- > tr {
659
+ &.pf-m-no-border-rows > tbody:where(.#{$table}__tbody) {
660
+ > tr:where(.#{$table}__tr) {
657
661
  border-bottom: 0;
658
662
 
659
663
  > :first-child::after {
@@ -675,120 +679,128 @@
675
679
  }
676
680
 
677
681
  // tr clickable
678
- tr.pf-m-clickable {
679
- cursor: pointer;
680
- background-color: var(--#{$table}--tr--m-clickable--BackgroundColor);
681
- outline-offset: var(--#{$table}--tr--m-clickable--OutlineOffset);
682
- box-shadow: var(--#{$table}--tr--m-clickable--BoxShadow);
682
+ tr:where(.#{$table}__tr) {
683
+ &.pf-m-clickable {
684
+ cursor: pointer;
685
+ background-color: var(--#{$table}__tr--m-clickable--BackgroundColor);
686
+ outline-offset: var(--#{$table}__tr--m-clickable--OutlineOffset);
687
+ box-shadow: var(--#{$table}__tr--m-clickable--BoxShadow);
688
+
689
+ &:hover,
690
+ &:focus,
691
+ &:active {
692
+ // stylelint-disable max-nesting-depth
693
+ &:not(.pf-m-selected) + tr:where(.#{$table}__tr).pf-m-selected {
694
+ box-shadow: var(--#{$table}__tr--m-clickable--m-selected--BoxShadow);
695
+ }
696
+ // stylelint-enable
697
+ }
683
698
 
684
- &:hover,
685
- &:focus,
686
- &:active {
687
- &:not(.pf-m-selected) + tr.pf-m-selected {
688
- box-shadow: var(--#{$table}--tr--m-clickable--m-selected--BoxShadow);
699
+ &:hover {
700
+ --#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--hover--BoxShadow);
701
+ --#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--hover--BackgroundColor);
689
702
  }
690
- }
691
703
 
692
- &:hover {
693
- --#{$table}--tr--m-clickable--BoxShadow: var(--#{$table}--tr--m-clickable--hover--BoxShadow);
694
- --#{$table}--tr--m-clickable--BackgroundColor: var(--#{$table}--tr--m-clickable--hover--BackgroundColor);
695
- }
704
+ &:focus {
705
+ --#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--focus--BoxShadow);
706
+ --#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--focus--BackgroundColor);
707
+ }
696
708
 
697
- &:focus {
698
- --#{$table}--tr--m-clickable--BoxShadow: var(--#{$table}--tr--m-clickable--focus--BoxShadow);
699
- --#{$table}--tr--m-clickable--BackgroundColor: var(--#{$table}--tr--m-clickable--focus--BackgroundColor);
709
+ &:active {
710
+ --#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--active--BoxShadow);
711
+ --#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--active--BackgroundColor);
712
+ }
700
713
  }
701
714
 
702
- &:active {
703
- --#{$table}--tr--m-clickable--BoxShadow: var(--#{$table}--tr--m-clickable--active--BoxShadow);
704
- --#{$table}--tr--m-clickable--BackgroundColor: var(--#{$table}--tr--m-clickable--active--BackgroundColor);
705
- }
706
- }
715
+ // tr selected
716
+ &.pf-m-selected {
717
+ --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tr--m-selected--after--BorderLeftWidth);
718
+ --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tr--m-selected--after--BorderLeftColor);
707
719
 
708
- // tr selected
709
- tr.pf-m-selected {
710
- --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}--tr--m-selected--after--BorderLeftWidth);
711
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}--tr--m-selected--after--BorderLeftColor);
720
+ position: relative;
721
+ background-color: var(--#{$table}__tr--m-selected--BackgroundColor);
722
+ outline-offset: var(--#{$table}__tr--m-selected--OutlineOffset);
723
+ box-shadow: var(--#{$table}__tr--m-selected--BoxShadow);
712
724
 
713
- position: relative;
714
- background-color: var(--#{$table}--tr--m-selected--BackgroundColor);
715
- outline-offset: var(--#{$table}--tr--m-selected--OutlineOffset);
716
- box-shadow: var(--#{$table}--tr--m-selected--BoxShadow);
725
+ & + tr:where(.#{$table}__tr).pf-m-selected {
726
+ box-shadow: var(--#{$table}__tr--m-selected--m-selected--BoxShadow);
727
+ }
717
728
 
718
- & + tr.pf-m-selected {
719
- box-shadow: var(--#{$table}--tr--m-selected--m-selected--BoxShadow);
720
- }
729
+ & + tr:where(.#{$table}__tr).pf-m-selected:hover {
730
+ box-shadow: var(--#{$table}__tr--m-selected__tr--m-selected--hover--BoxShadow);
731
+ }
721
732
 
722
- & + tr.pf-m-selected:hover {
723
- box-shadow: var(--#{$table}--tr--m-selected--tr--m-selected--hover--BoxShadow);
733
+ &:hover + tr:where(.#{$table}__tr).pf-m-selected {
734
+ box-shadow: var(--#{$table}__tr--m-selected--hover__tr--m-selected--BoxShadow);
735
+ }
724
736
  }
725
737
 
726
- &:hover + tr.pf-m-selected {
727
- box-shadow: var(--#{$table}--tr--m-selected--hover--m-selected--BoxShadow);
738
+ &.pf-m-first-cell-offset-reset {
739
+ --#{$table}--cell--first-last-child--PaddingLeft: var(--#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft);
728
740
  }
729
741
  }
730
742
 
731
- tr.pf-m-first-cell-offset-reset {
732
- --#{$table}--cell--first-last-child--PaddingLeft: var(--#{$table}--tr--m-first-cell-offset-reset--cell--PaddingLeft);
733
- }
734
-
735
743
  // tbody clickable
736
- tbody.pf-m-clickable {
737
- cursor: pointer;
738
- background-color: var(--#{$table}--tbody--m-clickable--BackgroundColor);
739
- outline-offset: var(--#{$table}--tbody--m-clickable--OutlineOffset);
740
- box-shadow: var(--#{$table}--tbody--m-clickable--BoxShadow);
741
-
742
- &.pf-m-expanded:not(.pf-m-selected) {
743
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}--tbody--m-clickable--m-expanded--BorderColor);
744
- }
744
+ // stylelint-disable no-duplicate-selectors
745
+ tbody:where(.#{$table}__tbody) {
746
+ &.pf-m-clickable {
747
+ cursor: pointer;
748
+ background-color: var(--#{$table}__tbody--m-clickable--BackgroundColor);
749
+ outline-offset: var(--#{$table}__tbody--m-clickable--OutlineOffset);
750
+ box-shadow: var(--#{$table}__tbody--m-clickable--BoxShadow);
751
+
752
+ &.pf-m-expanded:not(.pf-m-selected) {
753
+ --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-clickable--m-expanded--BorderColor);
754
+ }
745
755
 
746
- &:hover,
747
- &:focus,
748
- &:active {
749
- &:not(.pf-m-selected) + tbody.pf-m-selected {
750
- box-shadow: var(--#{$table}--tbody--m-clickable--m-selected--hover--tr--BoxShadow);
756
+ &:hover,
757
+ &:focus,
758
+ &:active {
759
+ // stylelint-disable max-nesting-depth
760
+ &:not(.pf-m-selected) + tbody:where(.#{$table}__tbody).pf-m-selected {
761
+ box-shadow: var(--#{$table}__tbody--m-clickable--m-selected--hover__tr--BoxShadow);
762
+ }
763
+ // stylelint-enable
751
764
  }
752
- }
753
765
 
754
- &:hover {
755
- --#{$table}--tbody--m-clickable--BoxShadow: var(--#{$table}--tbody--m-clickable--hover--BoxShadow);
756
- --#{$table}--tbody--m-clickable--BackgroundColor: var(--#{$table}--tbody--m-clickable--hover--BackgroundColor);
757
- }
766
+ &:hover {
767
+ --#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--hover--BoxShadow);
768
+ --#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--hover--BackgroundColor);
769
+ }
758
770
 
759
- &:focus {
760
- --#{$table}--tbody--m-clickable--BoxShadow: var(--#{$table}--tbody--m-clickable--focus--BoxShadow);
761
- --#{$table}--tbody--m-clickable--BackgroundColor: var(--#{$table}--tbody--m-clickable--focus--BackgroundColor);
762
- }
771
+ &:focus {
772
+ --#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--focus--BoxShadow);
773
+ --#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--focus--BackgroundColor);
774
+ }
763
775
 
764
- &:active {
765
- --#{$table}--tbody--m-clickable--BoxShadow: var(--#{$table}--tbody--m-clickable--active--BoxShadow);
766
- --#{$table}--tbody--m-clickable--BackgroundColor: var(--#{$table}--tbody--m-clickable--active--BackgroundColor);
776
+ &:active {
777
+ --#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--active--BoxShadow);
778
+ --#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--active--BackgroundColor);
779
+ }
767
780
  }
768
- }
769
781
 
770
- // tbody selected
771
- tbody.pf-m-selected {
772
- --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}--tbody--m-selected--after--BorderLeftWidth);
773
- --#{$table}__expandable-row--after--BorderColor: var(--#{$table}--tbody--m-selected--after--BorderLeftColor);
782
+ // tbody selected
783
+ &.pf-m-selected {
784
+ --#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tbody--m-selected--after--BorderLeftWidth);
785
+ --#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-selected--after--BorderLeftColor);
774
786
 
775
- background-color: var(--#{$table}--tbody--m-selected--BackgroundColor);
776
- outline-offset: var(--#{$table}--tbody--m-selected--OutlineOffset);
777
- box-shadow: var(--#{$table}--tbody--m-selected--BoxShadow);
787
+ background-color: var(--#{$table}__tbody--m-selected--BackgroundColor);
788
+ outline-offset: var(--#{$table}__tbody--m-selected--OutlineOffset);
789
+ box-shadow: var(--#{$table}__tbody--m-selected--BoxShadow);
778
790
 
779
- & + tbody.pf-m-selected {
780
- --#{$table}--tbody--m-selected--BoxShadow: var(--#{$table}--tbody--m-selected--m-selected--BoxShadow);
781
- }
791
+ & + tbody:where(.#{$table}__tbody).pf-m-selected {
792
+ --#{$table}__tbody--m-selected--BoxShadow: var(--#{$table}__tbody--m-selected--m-selected--BoxShadow);
793
+ }
782
794
 
783
- & + tbody.pf-m-selected:hover {
784
- box-shadow: var(--#{$table}--tbody--m-selected--tbody--m-selected--hover--BoxShadow);
785
- }
795
+ & + tbody:where(.#{$table}__tbody).pf-m-selected:hover {
796
+ box-shadow: var(--#{$table}__tbody--m-selected__tbody--m-selected--hover--BoxShadow);
797
+ }
786
798
 
787
- &:hover + tbody.pf-m-selected {
788
- box-shadow: var(--#{$table}--tbody--m-selected--hover--tbody--m-selected--BoxShadow);
799
+ &:hover + tbody:where(.#{$table}__tbody).pf-m-selected {
800
+ box-shadow: var(--#{$table}__tbody--m-selected--hover__tbody--m-selected--BoxShadow);
801
+ }
789
802
  }
790
803
  }
791
- // stylelint-enable
792
804
 
793
805
  &.pf-m-drag-over {
794
806
  overflow-anchor: none;
@@ -891,28 +903,26 @@
891
903
  min-width: auto;
892
904
  }
893
905
 
894
- // stylelint-disable
895
- .#{$table} thead.pf-m-nowrap &,
896
- .#{$table} tr.pf-m-nowrap &,
897
- .#{$table} th.pf-m-nowrap & {
906
+ .#{$table} thead:where(.#{$table}__thead).pf-m-nowrap &,
907
+ .#{$table} tr:where(.#{$table}__tr).pf-m-nowrap &,
908
+ .#{$table} th:where(.#{$table}__th).pf-m-nowrap & {
898
909
  grid-template-columns: min-content max-content;
899
910
  }
900
911
 
901
- .#{$table} thead.pf-m-fit-content &,
902
- .#{$table} tr.pf-m-fit-content &,
903
- .#{$table} th.pf-m-fit-content & {
912
+ .#{$table} thead:where(.#{$table}__thead).pf-m-fit-content &,
913
+ .#{$table} tr:where(.#{$table}__tr).pf-m-fit-content &,
914
+ .#{$table} th:where(.#{$table}__th).pf-m-fit-content & {
904
915
  grid-template-columns: fit-content max-content;
905
916
  }
906
917
 
907
- .#{$table} thead.pf-m-wrap &,
908
- .#{$table} tr.pf-m-wrap &,
909
- .#{$table} th.pf-m-wrap &,
910
- .#{$table} thead.pf-m-truncate &,
911
- .#{$table} tr.pf-m-truncate &,
912
- .#{$table} th.pf-m-truncate & {
918
+ .#{$table} thead:where(.#{$table}__thead).pf-m-wrap &,
919
+ .#{$table} tr:where(.#{$table}__tr).pf-m-wrap &,
920
+ .#{$table} th:where(.#{$table}__th).pf-m-wrap &,
921
+ .#{$table} thead:where(.#{$table}__thead).pf-m-truncate &,
922
+ .#{$table} tr:where(.#{$table}__tr).pf-m-truncate &,
923
+ .#{$table} th:where(.#{$table}__th).pf-m-truncate & {
913
924
  grid-template-columns: auto max-content;
914
925
  }
915
- // stylelint-enable
916
926
  }
917
927
 
918
928
  // Minimize padding
@@ -928,7 +938,7 @@
928
938
  .#{$table} .#{$table}__toggle,
929
939
  .#{$table} .#{$table}__action,
930
940
  .#{$table} .#{$table}__favorite,
931
- .#{$table} th.pf-m-favorite,
941
+ .#{$table} th:where(.#{$table}__th).pf-m-favorite,
932
942
  .#{$table} .#{$table}__inline-edit-action,
933
943
  .#{$table} .#{$table}__draggable {
934
944
  --#{$table}--cell--MinWidth: 0;
@@ -1179,7 +1189,7 @@
1179
1189
  }
1180
1190
 
1181
1191
  &.pf-m-help {
1182
- --#{$table}--th--m-help--MinWidth: var(--#{$table}__sort--m-help--MinWidth);
1192
+ --#{$table}__th--m-help--MinWidth: var(--#{$table}__sort--m-help--MinWidth);
1183
1193
  }
1184
1194
 
1185
1195
  &.pf-m-favorite {
@@ -1210,13 +1220,13 @@
1210
1220
  box-shadow: 0 0 0 0 transparent;
1211
1221
 
1212
1222
  &,
1213
- td:first-child::after {
1223
+ td:where(.#{$table}__td):first-child::after {
1214
1224
  transition: var(--#{$table}__expandable-row--Transition);
1215
1225
  }
1216
1226
 
1217
1227
  // stylelint-disable
1218
- td,
1219
- th {
1228
+ td:where(.#{$table}__td),
1229
+ th:where(.#{$table}__th) {
1220
1230
  &.pf-m-no-padding {
1221
1231
  padding: 0 0 0 var(--#{$table}__expandable-row--after--border-width--base); // set padding-left to adjust for left border.
1222
1232
 
@@ -1248,7 +1258,7 @@
1248
1258
  // Nested table
1249
1259
  // ==================================================================
1250
1260
  .#{$table} .#{$table} {
1251
- tr > * {
1261
+ tr:where(.#{$table}__tr) > * {
1252
1262
  // First child padding left
1253
1263
  &:first-child {
1254
1264
  --#{$table}--cell--PaddingLeft: var(--#{$table}--nested--first-last-child--PaddingLeft);
@@ -1269,8 +1279,7 @@
1269
1279
  --#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact--cell--PaddingBottom);
1270
1280
  --#{$table}--cell--PaddingRight: var(--#{$table}--m-compact--cell--PaddingLeft);
1271
1281
 
1272
-
1273
- tr {
1282
+ tr:where(.#{$table}__tr) {
1274
1283
  --#{$table}--cell--PaddingLeft: var(--#{$table}--m-compact--cell--PaddingLeft);
1275
1284
  --#{$table}--cell--PaddingRight: var(--#{$table}--m-compact--cell--PaddingRight);
1276
1285
 
@@ -1293,12 +1302,13 @@
1293
1302
  }
1294
1303
  }
1295
1304
 
1296
- // Thead only
1297
- thead {
1298
- th,
1305
+ // Thead
1306
+ thead:where(.#{$table}__thead) {
1307
+ th:where(.#{$table}__th),
1308
+ td:where(.#{$table}__td),
1299
1309
  .#{$table}__toggle {
1300
- --#{$table}--cell--PaddingTop: var(--#{$table}--m-compact-th--PaddingTop);
1301
- --#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact-th--PaddingBottom);
1310
+ --#{$table}--cell--PaddingTop: var(--#{$table}--m-compact__th--PaddingTop);
1311
+ --#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact__th--PaddingBottom);
1302
1312
  }
1303
1313
  }
1304
1314
 
@@ -1320,7 +1330,7 @@
1320
1330
  }
1321
1331
 
1322
1332
  // nested tables
1323
- .#{$table} & tr > * {
1333
+ .#{$table} & tr:where(.#{$table}__tr) > * {
1324
1334
  &:first-child {
1325
1335
  --#{$table}--cell--PaddingLeft: var(--#{$table}--nested--first-last-child--PaddingLeft);
1326
1336
  }