Goal
Some rows in a table are have a diff background colour.
Progress
I can add a table (or list) component to a page.
I want some rows/record to have a red background.
Help needed
I don’t know how to change the colour of specific rows/records based on logic, e.g. if column X = red then row background = red.
Here’s my setup:
.custom-check div[class*="pages-component-renderer___StyledDiv7"]:has(div[class*="rt-check"]) {
background: #F1E5AC;
}
[data-testid*="rt-check"] {
margin-top: 0px !important;
}
5 Likes
This is beautiful, perfect for card components, but how about a data grid row?
If it doesn’t have to be a data grid, you can switch to a table and do this.
1 Like