DataGrid2 Hover Colour

0
Hi Everyone,   Simple question (which I'm a bit embarrassed to ask) but can anyone tell me how I can change the hover colour for a DataGrid2 widget? I can see that there is a hover property here:     But the very light grey isn't strong enough and not in branding. I've seen fixes for list views, data views and datagrids, but this is a datagrid2 widget. I've created a class and scss file for this but that didn't make any difference (although I could set the font size this way so I guess I'm on the right track).   Any pointers greatfully received!
asked
2 answers
0

For datagrids with the Hover option enable, change the value of $grid-bg-hover in custom-variables to control the color.

answered
2

Hello David, 

To achieve this 

you need to modify the CSS styles. 

You can do it by adding a custom class on your Data Grid 2 and then targeting that class with CSS to change the background color on hover. 

Sample css

.my-datagrid-hover td:hover

 {

  background-color: lightblue;

};

answered