[PR #1336] #1335 Separate colour for odd striped row background #2679

Closed
opened 2026-01-29 18:19:57 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/1336

State: closed
Merged: Yes


We propose introducing a second color variable for the odd rows, e.g. --rz-grid-stripe-background-color-odd, or similar, whose value defaults to var(--rz-grid-background-color), to retain the current behavior, but can then be overridden to allow alternate striping patterns.

I moved the stripe colour definitions to under the background definition in case they need to be interconnected.

Note: I was unable to build the paid themes in order to check that it occurs in all themes. I checked this override in software-base

:root {
    --rz-grid-stripe-background-color-odd: red;
}

and got this:
image

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1336 **State:** closed **Merged:** Yes --- We propose introducing a second color variable for the odd rows, e.g. --rz-grid-stripe-background-color-odd, or similar, whose value defaults to var(--rz-grid-background-color), to retain the current behavior, but can then be overridden to allow alternate striping patterns. I moved the stripe colour definitions to under the background definition in case they need to be interconnected. Note: I was unable to build the paid themes in order to check that it occurs in all themes. I checked this override in software-base :root { --rz-grid-stripe-background-color-odd: red; } and got this: ![image](https://github.com/radzenhq/radzen-blazor/assets/151647113/fe2219ef-a4f4-4591-adaa-873f7c6b5bfe)
claunia added the pull-request label 2026-01-29 18:19:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2679