We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ece4ea commit 9a35ec3Copy full SHA for 9a35ec3
.changeset/plenty-llamas-fix.md
@@ -0,0 +1,5 @@
1
+---
2
+'@leafygreen-ui/table': patch
3
4
+
5
+Fixes style bug where zebra row colors override selected row colors
packages/table/src/Row/InternalRowWithRT.tsx
@@ -86,8 +86,10 @@ const InternalRowWithRT = <T extends LGRowData>({
86
<InternalRowBase
87
className={cx(
88
{
89
- [grayZebraRowStyles[theme]]: isOddVSRow && shouldAlternateRowColor,
90
- [zebraStyles[theme]]: !virtualRow && shouldAlternateRowColor,
+ [grayZebraRowStyles[theme]]:
+ isOddVSRow && shouldAlternateRowColor && !isSelected,
91
+ [zebraStyles[theme]]:
92
+ !virtualRow && shouldAlternateRowColor && !isSelected,
93
[selectedRowStyles[theme]]: isSelected && !disabled,
94
},
95
className,
0 commit comments