Zebra-stripe table rows
Adds alternating row backgrounds and a clear hover highlight to make wide tables easier to follow.
Code to copy
.Polaris-IndexTable__TableRow:nth-child(even),
.Polaris-DataTable__TableRow:nth-child(even),
table[class*="Polaris"] tbody tr:nth-child(even) {
background: rgba(0,0,0,0.035) !important;
}
.Polaris-IndexTable__TableRow:hover,
table[class*="Polaris"] tbody tr:hover {
background: rgba(0,128,96,0.10) !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.