@patternfly/patternfly 6.3.0-prerelease.36 → 6.3.0-prerelease.38

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.
@@ -14,6 +14,8 @@
14
14
  --pf-v6-c-table__tbody--cell--PaddingBlockStart: var(--pf-v6-c-table--cell--Padding--base);
15
15
  --pf-v6-c-table__tbody--cell--PaddingBlockEnd: var(--pf-v6-c-table--cell--Padding--base);
16
16
  --pf-v6-c-table__tbody--cell--FontSize: var(--pf-t--global--font--size--body--default);
17
+ --pf-v6-c-table__tbody--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
18
+ --pf-v6-c-table__tbody--BorderBlockEndColor: var(--pf-t--global--border--color--default);
17
19
  --pf-v6-c-table__tr--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
18
20
  --pf-v6-c-table__tr--BorderBlockEndColor: var(--pf-t--global--border--color--default);
19
21
  --pf-v6-c-table--cell--Padding--base: var(--pf-t--global--spacer--md);
@@ -206,7 +208,7 @@
206
208
  --pf-v6-c-table__sticky-column--BackgroundColor: var(--pf-v6-c-table--m-striped__tr--BackgroundColor);
207
209
  background: var(--pf-v6-c-table--m-striped__tr--BackgroundColor);
208
210
  }
209
- .pf-v6-c-table tr:where(.pf-v6-c-table__tr):not(.pf-v6-c-table__expandable-row).pf-m-ghost-row {
211
+ .pf-v6-c-table tr:where(.pf-v6-c-table__tr):not(.pf-v6-c-table__expandable-row:where(:nth-child(n+2))).pf-m-ghost-row {
210
212
  background-color: var(--pf-v6-c-table__tr--m-ghost-row--BackgroundColor);
211
213
  opacity: var(--pf-v6-c-table__tr--m-ghost-row--Opacity);
212
214
  }
@@ -406,7 +408,7 @@
406
408
  background-color: var(--pf-v6-c-table__tbody--m-selected--BackgroundColor);
407
409
  outline-offset: var(--pf-v6-c-table__tbody--m-selected--OutlineOffset);
408
410
  }
409
- .pf-v6-c-table tbody:where(.pf-v6-c-table__tbody).pf-m-selected .pf-v6-c-table__tr.pf-m-expanded:not(.pf-v6-c-table__expandable-row) {
411
+ .pf-v6-c-table tbody:where(.pf-v6-c-table__tbody).pf-m-selected .pf-v6-c-table__tr.pf-m-expanded:not(.pf-v6-c-table__expandable-row:where(:nth-child(n+2))) {
410
412
  border: none;
411
413
  }
412
414
  .pf-v6-c-table.pf-m-drag-over {
@@ -422,8 +424,8 @@
422
424
  .pf-v6-c-table .pf-v6-c-button .pf-v6-c-table__sort-indicator {
423
425
  --pf-v6-c-table__sort-indicator--MarginInlineStart: 0;
424
426
  }
425
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row {
426
- display: revert;
427
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) {
428
+ display: var(--pf-v6-c-table__expandable-row--Display, revert);
427
429
  visibility: hidden;
428
430
  opacity: var(--pf-v6-c-table__expandable-row--Opacity);
429
431
  transition-delay: 0s, 0s, var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
@@ -432,30 +434,33 @@
432
434
  transition-property: opacity, translate, visibility, background-color;
433
435
  translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
434
436
  }
435
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row[hidden] {
436
- display: revert;
437
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2))[hidden] {
438
+ display: var(--pf-v6-c-table__expandable-row--Display, revert);
437
439
  }
438
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded {
440
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)).pf-m-expanded {
439
441
  visibility: visible;
440
442
  opacity: var(--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity);
441
443
  transition-delay: 0s;
442
444
  transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
443
445
  translate: 0 var(--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY);
444
446
  }
445
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
447
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)).pf-m-expanded > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
446
448
  max-height: 99999px;
447
449
  }
448
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th),
449
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
450
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)):not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) {
451
+ --pf-v6-c-table--cell--responsive--label: none;
452
+ }
453
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)):not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th),
454
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)):not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
450
455
  padding: 0;
451
456
  overflow: hidden;
452
457
  transition-delay: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
453
458
  transition-property: padding, max-height, overflow;
454
459
  }
455
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
460
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:where(:nth-child(n+2)):not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
456
461
  max-height: 0;
457
462
  }
458
- .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__control-row.pf-m-no-animate-expand ~ .pf-v6-c-table__expandable-row {
463
+ .pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__control-row.pf-m-no-animate-expand ~ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) {
459
464
  --pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: 0s;
460
465
  --pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
461
466
  --pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: 0s;
@@ -762,53 +767,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
762
767
  pointer-events: none;
763
768
  }
764
769
 
765
- .pf-v6-c-table__expandable-row {
766
- position: relative;
767
- border-block-end: 0 solid transparent;
768
- }
769
- .pf-v6-c-table__expandable-row > .pf-v6-c-table__th,
770
- .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
771
- padding-block-start: 0;
772
- }
773
- .pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__th,
774
- .pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
775
- padding-block-start: var(--pf-v6-c-table--cell--PaddingBlockStart);
776
- }
777
- .pf-v6-c-table__expandable-row .pf-v6-c-table__td.pf-m-no-padding,
778
- .pf-v6-c-table__expandable-row .pf-v6-c-table__th.pf-m-no-padding {
779
- padding-block-start: 0;
780
- padding-block-end: 0;
781
- padding-inline-start: 0;
782
- padding-inline-end: 0;
783
- }
784
- .pf-v6-c-table__expandable-row .pf-v6-c-table__td.pf-m-no-padding .pf-v6-c-table__expandable-row-content,
785
- .pf-v6-c-table__expandable-row .pf-v6-c-table__th.pf-m-no-padding .pf-v6-c-table__expandable-row-content {
786
- padding: 0;
787
- border-radius: 0;
788
- }
789
- .pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content {
790
- padding-block-start: var(--pf-v6-c-table__expandable-row-content--PaddingBlockStart);
791
- padding-block-end: var(--pf-v6-c-table__expandable-row-content--PaddingBlockEnd);
792
- padding-inline-start: var(--pf-v6-c-table__expandable-row-content--PaddingInlineStart);
793
- padding-inline-end: var(--pf-v6-c-table__expandable-row-content--PaddingInlineEnd);
794
- background-color: var(--pf-v6-c-table__expandable-row-content--BackgroundColor);
795
- border-radius: var(--pf-v6-c-table__expandable-row-content--BorderRadius);
796
- }
797
- .pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content.pf-m-no-background {
798
- background-color: transparent;
799
- }
800
- .pf-v6-c-table__expandable-row.pf-m-expanded {
801
- border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
802
- border-block-end-width: var(--pf-v6-c-table--border-width--base);
803
- }
804
- .pf-v6-c-table__expandable-row:not(.pf-m-expanded) {
805
- display: none;
806
- }
807
- .pf-v6-c-table__expandable-row tr:last-child {
808
- border-block-end: 0;
809
- }
810
-
811
- .pf-v6-c-table__tr:has(~ .pf-v6-c-table__expandable-row) {
770
+ .pf-v6-c-table__tr:has(~ .pf-v6-c-table__expandable-row.pf-m-expanded) {
812
771
  border-block-end: 0;
813
772
  }
814
773
 
@@ -816,7 +775,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
816
775
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact--cell--PaddingBlockStart);
817
776
  --pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact--cell--PaddingBlockEnd);
818
777
  }
819
- .pf-v6-c-table.pf-m-compact tr:where(.pf-v6-c-table__tr):not(.pf-v6-c-table__expandable-row) {
778
+ .pf-v6-c-table.pf-m-compact tr:where(.pf-v6-c-table__tr):not(.pf-v6-c-table__expandable-row:where(:nth-child(n+2))) {
820
779
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact--cell--PaddingBlockStart);
821
780
  --pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact--cell--PaddingBlockEnd);
822
781
  }
@@ -860,16 +819,14 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
860
819
  background-color: var(--pf-v6-c-table--compound-expansion--m-expanded--BackgroundColor);
861
820
  }
862
821
 
863
- .pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tr.pf-m-expanded {
822
+ .pf-v6-c-table__tr.pf-m-expanded:has(~ .pf-v6-c-table__expandable-row) {
864
823
  border-block-end: 0;
865
824
  }
866
- .pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody {
867
- border-block-end: var(--pf-v6-c-table__tr--BorderBlockEndWidth) solid var(--pf-v6-c-table__tr--BorderBlockEndColor);
868
- }
869
- .pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody.pf-m-expanded {
870
- border-block-end: var(--pf-v6-c-table__tr--BorderBlockEndWidth) solid var(--pf-v6-c-table__tr--BorderBlockEndColor);
825
+
826
+ .pf-v6-c-table__tbody.pf-m-expanded, .pf-v6-c-table__tbody:has(> .pf-v6-c-table__expandable-row.pf-m-expanded) {
827
+ border-block-end: var(--pf-v6-c-table__tbody--BorderBlockEndWidth) solid var(--pf-v6-c-table__tbody--BorderBlockEndColor);
871
828
  }
872
- .pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody.pf-m-expanded .pf-v6-c-table__control-row {
829
+ .pf-v6-c-table__tbody.pf-m-expanded .pf-v6-c-table__control-row {
873
830
  background-color: var(--pf-v6-c-table__control-row--BackgroundColor);
874
831
  border-block-end: 0;
875
832
  }
@@ -884,6 +841,52 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
884
841
  border-block-end: var(--pf-v6-c-table--border-width--base) solid var(--pf-v6-c-table--BorderColor);
885
842
  }
886
843
 
844
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) {
845
+ position: relative;
846
+ border-block-end: 0 solid transparent;
847
+ }
848
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) > .pf-v6-c-table__th,
849
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) > .pf-v6-c-table__td {
850
+ padding-block-start: 0;
851
+ }
852
+ .pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) > .pf-v6-c-table__th,
853
+ .pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) > .pf-v6-c-table__td {
854
+ padding-block-start: var(--pf-v6-c-table--cell--PaddingBlockStart);
855
+ }
856
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__td.pf-m-no-padding,
857
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__th.pf-m-no-padding {
858
+ padding-block-start: 0;
859
+ padding-block-end: 0;
860
+ padding-inline-start: 0;
861
+ padding-inline-end: 0;
862
+ }
863
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__td.pf-m-no-padding .pf-v6-c-table__expandable-row-content,
864
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__th.pf-m-no-padding .pf-v6-c-table__expandable-row-content {
865
+ padding: 0;
866
+ border-radius: 0;
867
+ }
868
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__expandable-row-content {
869
+ padding-block-start: var(--pf-v6-c-table__expandable-row-content--PaddingBlockStart);
870
+ padding-block-end: var(--pf-v6-c-table__expandable-row-content--PaddingBlockEnd);
871
+ padding-inline-start: var(--pf-v6-c-table__expandable-row-content--PaddingInlineStart);
872
+ padding-inline-end: var(--pf-v6-c-table__expandable-row-content--PaddingInlineEnd);
873
+ background-color: var(--pf-v6-c-table__expandable-row-content--BackgroundColor);
874
+ border-radius: var(--pf-v6-c-table__expandable-row-content--BorderRadius);
875
+ }
876
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) .pf-v6-c-table__expandable-row-content.pf-m-no-background {
877
+ background-color: transparent;
878
+ }
879
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)).pf-m-expanded {
880
+ border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
881
+ border-block-end-width: var(--pf-v6-c-table--border-width--base);
882
+ }
883
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)):not(.pf-m-expanded) {
884
+ display: none;
885
+ }
886
+ .pf-v6-c-table__expandable-row:where(:nth-child(n+2)) tr:last-child {
887
+ border-block-end: 0;
888
+ }
889
+
887
890
  .pf-v6-c-table__icon-inline {
888
891
  display: flex;
889
892
  align-items: center;
@@ -27,6 +27,8 @@
27
27
  --#{$table}__tbody--cell--PaddingBlockStart: var(--#{$table}--cell--Padding--base);
28
28
  --#{$table}__tbody--cell--PaddingBlockEnd: var(--#{$table}--cell--Padding--base);
29
29
  --#{$table}__tbody--cell--FontSize: var(--pf-t--global--font--size--body--default); // set this explicitly for input heights to calc properly
30
+ --#{$table}__tbody--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
31
+ --#{$table}__tbody--BorderBlockEndColor: var(--pf-t--global--border--color--default);
30
32
 
31
33
  // * Table tr
32
34
  --#{$table}__tr--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
@@ -331,7 +333,7 @@
331
333
 
332
334
  // Standard table row (non-expandable)
333
335
  // exclude expandable rows
334
- tr:where(.#{$table}__tr):not(.#{$table}__expandable-row) {
336
+ tr:where(.#{$table}__tr):not(.#{$table}__expandable-row:where(:nth-child(n+2))) {
335
337
  // stylelint-disable-next-line
336
338
  &.pf-m-ghost-row {
337
339
  background-color: var(--#{$table}__tr--m-ghost-row--BackgroundColor);
@@ -569,7 +571,7 @@
569
571
  background-color: var(--#{$table}__tbody--m-selected--BackgroundColor);
570
572
  outline-offset: var(--#{$table}__tbody--m-selected--OutlineOffset);
571
573
 
572
- .#{$table}__tr.pf-m-expanded:not(.#{$table}__expandable-row) {
574
+ .#{$table}__tr.pf-m-expanded:not(.#{$table}__expandable-row:where(:nth-child(n+2))) {
573
575
  border: none;
574
576
  }
575
577
  }
@@ -596,8 +598,8 @@
596
598
  // stylelint-disable max-nesting-depth, selector-max-class
597
599
  &.pf-m-animate-expand {
598
600
  > .#{$table}__tbody {
599
- > .#{$table}__expandable-row {
600
- display: revert;
601
+ > .#{$table}__expandable-row:where(:nth-child(n+2)) {
602
+ display: var(--#{$table}__expandable-row--Display, revert);
601
603
  visibility: hidden;
602
604
  opacity: var(--#{$table}__expandable-row--Opacity);
603
605
  transition-delay: 0s, 0s, var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
@@ -607,7 +609,7 @@
607
609
  translate: 0 var(--#{$table}__expandable-row--TranslateY);
608
610
 
609
611
  &[hidden] {
610
- display: revert;
612
+ display: var(--#{$table}__expandable-row--Display, revert);
611
613
  }
612
614
 
613
615
  &.pf-m-expanded {
@@ -626,6 +628,8 @@
626
628
 
627
629
  &:not(.pf-m-expanded) {
628
630
  > :is(.#{$table}__td, .#{$table}__th) {
631
+ --#{$table}--cell--responsive--label: none;
632
+
629
633
  &,
630
634
  > .#{$table}__expandable-row-content {
631
635
  padding: 0;
@@ -641,7 +645,7 @@
641
645
  }
642
646
  }
643
647
 
644
- > .#{$table}__control-row.pf-m-no-animate-expand ~ .#{$table}__expandable-row {
648
+ > .#{$table}__control-row.pf-m-no-animate-expand ~ .#{$table}__expandable-row:where(:nth-child(n+2)) {
645
649
  --#{$table}__expandable-row--TransitionDuration--collapse--fade: 0s;
646
650
  --#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
647
651
  --#{$table}__expandable-row--TransitionDuration--expand--fade: 0s;
@@ -1037,71 +1041,7 @@
1037
1041
  pointer-events: none;
1038
1042
  }
1039
1043
 
1040
- // - Table expandable row
1041
- .#{$table}__expandable-row {
1042
- position: relative;
1043
- border-block-end: 0 solid transparent;
1044
-
1045
- // Remove top padding from regular expandable
1046
- > .#{$table}__th,
1047
- > .#{$table}__td {
1048
- padding-block-start: 0;
1049
- }
1050
-
1051
- // Add padding back to compound expandable
1052
- .#{$table}__control-row ~ & {
1053
- > .#{$table}__th,
1054
- > .#{$table}__td {
1055
- padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
1056
- }
1057
- }
1058
-
1059
- .#{$table}__td,
1060
- .#{$table}__th {
1061
- &.pf-m-no-padding {
1062
- padding-block-start: 0;
1063
- padding-block-end: 0;
1064
- padding-inline-start: 0;
1065
- padding-inline-end: 0;
1066
-
1067
- .#{$table}__expandable-row-content {
1068
- padding: 0;
1069
- border-radius: 0;
1070
- }
1071
- }
1072
- }
1073
-
1074
- // - Table expandable row content
1075
- .#{$table}__expandable-row-content {
1076
- padding-block-start: var(--#{$table}__expandable-row-content--PaddingBlockStart);
1077
- padding-block-end: var(--#{$table}__expandable-row-content--PaddingBlockEnd);
1078
- padding-inline-start: var(--#{$table}__expandable-row-content--PaddingInlineStart);
1079
- padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
1080
- background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
1081
- border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
1082
-
1083
- &.pf-m-no-background {
1084
- background-color: transparent;
1085
- }
1086
- }
1087
-
1088
- // - Table expandable row content expanded
1089
- &.pf-m-expanded {
1090
- border-block-end-color: var(--#{$table}__expandable-row--m-expanded--BorderBlockEndColor);
1091
- border-block-end-width: var(--#{$table}--border-width--base);
1092
- }
1093
-
1094
- &:not(.pf-m-expanded) {
1095
- display: none;
1096
- }
1097
-
1098
- // - Table expandable row tr last-child
1099
- tr:last-child {
1100
- border-block-end: 0;
1101
- }
1102
- }
1103
-
1104
- .#{$table}__tr:has(~ .#{$table}__expandable-row) {
1044
+ .#{$table}__tr:has(~ .#{$table}__expandable-row.pf-m-expanded) {
1105
1045
  border-block-end: 0;
1106
1046
  }
1107
1047
 
@@ -1112,7 +1052,7 @@
1112
1052
 
1113
1053
  // - Table compact table tr
1114
1054
  tr:where(.#{$table}__tr) {
1115
- &:not(.#{$table}__expandable-row) {
1055
+ &:not(.#{$table}__expandable-row:where(:nth-child(n+2))) {
1116
1056
  --#{$table}--cell--PaddingBlockStart: var(--#{$table}--m-compact--cell--PaddingBlockStart);
1117
1057
  --#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-compact--cell--PaddingBlockEnd);
1118
1058
  }
@@ -1176,21 +1116,17 @@
1176
1116
  }
1177
1117
  }
1178
1118
 
1179
- // Table table tbody expandable
1180
- .#{$table}.pf-m-expandable {
1181
- .#{$table}__tr.pf-m-expanded {
1182
- border-block-end: 0;
1183
- }
1119
+ .#{$table}__tr.pf-m-expanded:has(~ .#{$table}__expandable-row) {
1120
+ border-block-end: 0;
1121
+ }
1184
1122
 
1185
- // - Table tbody
1186
- .#{$table}__tbody {
1187
- border-block-end: var(--#{$table}__tr--BorderBlockEndWidth) solid var(--#{$table}__tr--BorderBlockEndColor);
1123
+ .#{$table}__tbody {
1124
+ &.pf-m-expanded,
1125
+ &:has(> .#{$table}__expandable-row.pf-m-expanded) {
1126
+ border-block-end: var(--#{$table}__tbody--BorderBlockEndWidth) solid var(--#{$table}__tbody--BorderBlockEndColor);
1188
1127
  }
1189
1128
 
1190
- // - Table tbody - Table tr
1191
- .#{$table}__tbody.pf-m-expanded {
1192
- border-block-end: var(--#{$table}__tr--BorderBlockEndWidth) solid var(--#{$table}__tr--BorderBlockEndColor);
1193
-
1129
+ &.pf-m-expanded {
1194
1130
  // - Table tbody table control row
1195
1131
  .#{$table}__control-row {
1196
1132
  background-color: var(--#{$table}__control-row--BackgroundColor);
@@ -1212,6 +1148,71 @@
1212
1148
  }
1213
1149
  }
1214
1150
 
1151
+ // - Table expandable row
1152
+ // n+2 selects all children except the first because __expandable-row can go on the first row in an expandable tbody when it shouldn't. TODO - remove __expandable-body from first/control tr in breaking change.
1153
+ .#{$table}__expandable-row:where(:nth-child(n+2)) {
1154
+ position: relative;
1155
+ border-block-end: 0 solid transparent;
1156
+
1157
+ // Remove top padding from regular expandable
1158
+ > .#{$table}__th,
1159
+ > .#{$table}__td {
1160
+ padding-block-start: 0;
1161
+ }
1162
+
1163
+ // Add padding back to compound expandable
1164
+ .#{$table}__control-row ~ & {
1165
+ > .#{$table}__th,
1166
+ > .#{$table}__td {
1167
+ padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
1168
+ }
1169
+ }
1170
+
1171
+ .#{$table}__td,
1172
+ .#{$table}__th {
1173
+ &.pf-m-no-padding {
1174
+ padding-block-start: 0;
1175
+ padding-block-end: 0;
1176
+ padding-inline-start: 0;
1177
+ padding-inline-end: 0;
1178
+
1179
+ .#{$table}__expandable-row-content {
1180
+ padding: 0;
1181
+ border-radius: 0;
1182
+ }
1183
+ }
1184
+ }
1185
+
1186
+ // - Table expandable row content
1187
+ .#{$table}__expandable-row-content {
1188
+ padding-block-start: var(--#{$table}__expandable-row-content--PaddingBlockStart);
1189
+ padding-block-end: var(--#{$table}__expandable-row-content--PaddingBlockEnd);
1190
+ padding-inline-start: var(--#{$table}__expandable-row-content--PaddingInlineStart);
1191
+ padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
1192
+ background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
1193
+ border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
1194
+
1195
+ &.pf-m-no-background {
1196
+ background-color: transparent;
1197
+ }
1198
+ }
1199
+
1200
+ // - Table expandable row content expanded
1201
+ &.pf-m-expanded {
1202
+ border-block-end-color: var(--#{$table}__expandable-row--m-expanded--BorderBlockEndColor);
1203
+ border-block-end-width: var(--#{$table}--border-width--base);
1204
+ }
1205
+
1206
+ &:not(.pf-m-expanded) {
1207
+ display: none;
1208
+ }
1209
+
1210
+ // - Table expandable row tr last-child
1211
+ tr:last-child {
1212
+ border-block-end: 0;
1213
+ }
1214
+ }
1215
+
1215
1216
  // - Table icon inline
1216
1217
  .#{$table}__icon-inline {
1217
1218
  display: flex;