@sebgroup/green-core 3.18.1 → 3.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -534,24 +534,20 @@ const TableStyles = css`
534
534
  background-color: var(--_table-row-hover);
535
535
  }
536
536
 
537
- .striped tbody tr:nth-child(even):hover:not(.selected) {
537
+ .striped
538
+ tbody
539
+ tr:nth-child(even):hover:not(.selected):not(.expanded-parent):not(
540
+ .expanded-row
541
+ ) {
538
542
  --_table-current-row-bg: var(--_table-row-striped-hover);
539
543
  background-color: var(--_table-row-striped-hover);
540
544
  }
541
545
 
542
- .striped tbody tr.expanded-parent:nth-child(even):hover:not(.selected),
543
- .striped tbody tr.expanded-row:nth-child(even):hover:not(.selected) {
544
- --_table-current-row-bg: var(--_table-row-striped-hover);
545
- background: var(--_table-row-striped-hover);
546
- }
547
-
548
546
  .striped
549
547
  tbody
550
- tr.expanded-parent:nth-child(even):hover:not(.selected)
551
- td:not(.sticky-left):not(.sticky-right),
552
- .striped
553
- tbody
554
- tr.expanded-row:nth-child(even):hover:not(.selected)
548
+ tr:nth-child(even):hover:not(.selected):not(.expanded-parent):not(
549
+ .expanded-row
550
+ )
555
551
  td:not(.sticky-left):not(.sticky-right) {
556
552
  background-color: var(--_table-row-striped-hover);
557
553
  }
@@ -562,31 +558,20 @@ const TableStyles = css`
562
558
  border-color: transparent;
563
559
  }
564
560
 
565
- /* Striped */
566
- .striped tbody tr:nth-child(even):not(.selected):not(:hover) {
567
- --_table-current-row-bg: var(--_table-row-striped);
568
- }
569
-
570
- .striped tbody tr.expanded-parent:nth-child(even):not(.selected):not(:hover),
571
- .striped tbody tr.expanded-row:nth-child(even):not(.selected):not(:hover) {
572
- --_table-current-row-bg: var(--_table-row-striped);
573
- background: var(--_table-row-striped);
574
- }
575
-
561
+ /* Striped - expanded rows are always excluded to ensure consistent appearance */
576
562
  .striped
577
563
  tbody
578
- tr:nth-child(even):not(.selected):not(:hover)
579
- td:not(.sticky-left):not(.sticky-right) {
580
- background-color: var(--_table-row-striped);
564
+ tr:nth-child(even):not(.selected):not(:hover):not(.expanded-parent):not(
565
+ .expanded-row
566
+ ) {
567
+ --_table-current-row-bg: var(--_table-row-striped);
581
568
  }
582
569
 
583
570
  .striped
584
571
  tbody
585
- tr.expanded-parent:nth-child(even):not(.selected):not(:hover)
586
- td:not(.sticky-left):not(.sticky-right),
587
- .striped
588
- tbody
589
- tr.expanded-row:nth-child(even):not(.selected):not(:hover)
572
+ tr:nth-child(even):not(.selected):not(:hover):not(.expanded-parent):not(
573
+ .expanded-row
574
+ )
590
575
  td:not(.sticky-left):not(.sticky-right) {
591
576
  background-color: var(--_table-row-striped);
592
577
  }