I'm in the process of upgrading my Polymer 3.0 Javascript app from v14 Vaadin Components to V24. I've overcome many breaking changes, but I haven't been able to solve this one.
In Vaadin 14, I'm able to highlight a row in a grid upon hover with this placed in a custom theme for vaadin-grid:
[part~="row"]:hover > [part~="body-cell"] {
background: var(--lumo-primary-color-10pct);
}
In Vaadin 24, styling of a row in vaadin-grid is per the CSS selector:
vaadin-grid::part(row)
Using this selector, I have not been successful at applying a background color to a grid row (with or without the :hover pseudo-class).
For example:
vaadin-grid::part(row):hover {
color: green;
background: orange;
}
selects any row hovered over, applying green to the text, but the background is unchanged.
vaadin-grid::part(body-cell):hover {
color: green;
background: orange;
}
selects any cell hovered over, applying both green to the text and orange to the background.
How can I apply a hover highlight to an entire row of vaadin-grid in 24?