Easier options to override grid row background colors
GridModel allows devs to set a rowClassFn() to control row-level css classes. Currently, styles set by these row classes can clash with existing styles - for example, changing background-color can break row selection highlight.
Adjust in order to limit unwanted side-effects - ideally, we would be able to set any main style property in a row class and it will behave well with existing styles.
To clarify the expectations here - I'm thinking a custom row class:
- Should override the row striping background
- Should not override the selection background
- Should not override the hover background (if enabled)
Are we primarily concerned about these cases (selection more than anything) or do you think we need to defend against / ensure we allow overrides in other cases?
Linking to #1331 - although not the same thing, feels like we should review both at the same time when we do,
@TomTirapani can you take another look at this ticket - just the ticket - and let us know if you think we should close this now as not in demand / actionable, or if we should instead keep open as important to track.
I think we should keep this open, but limit the scope to just the background-color setting specified above.
I'll make an attempt at it as soon as I get chance so we can close this ticket.
@jskupsik says he has a recipe for this and has won himself this ancient ticket 😉