I have a CSS class .custom-service-table
, with the following style:
.custom-service-table{
background: transparent;
}
This CSS actually set the background of a table to transparent. For each row of the table, depending on a value, I need to update the table background.
For example, I have a bool isActive
, if isActive
is true
then I need to update the table background to white.
Once I am doing the check, I am adding a CSS class to the row, active-row
.
How can I apply a style to the class, active-row
, so as to set the table background to white in CSS?