I have a Vuetify v-simple-table where I need to render row css differently depending on whether a task is complete or not.
I can conditionally render the background color with the following code.
<tr :class="[done? 'greenBG' : 'whiteBG']">
The css is straight forward.
.greenBG {
background-color: #79ecc5;
}
.whiteBG {
background-color: white;
}
However, I cannot seem to disable the defualt :hover css. I tried connecting it to the class with this css.
tr.greenBG:hover { background-color: green }
If anyone can help me achieve this I'd be grateful.
tr.greenBG:hover { background-color: green }sometimes browsers like to have that semi-colontr.greenBG:hover { background-color: green; }OR just add to the specificity of the selector.v-data-table__wrapper tr.greenBG:hover { background-color: green; }