I try to style my grid in a Hilla Project, but the css selector for a row is not working.
Simple grid with 3 columns, that works
<Grid items={ingredients} selectedItems={selectedIngredients}
onActiveItemChanged={e =>{
setSelectedIngredients(e.detail.value? [e.detail.value] : []);
console.log(selectedIngredients);
}}>
<GridColumn path={"id"}></GridColumn>
<GridColumn path={"name"}></GridColumn>
<GridColumn path={"val"}></GridColumn>
</Grid>
then i added some css for styling the component. Hilla documentation referenced to vaadin styling documentation. https://vaadin.com/docs/latest/components/grid/styling
selector like
vaadin-grid::part(row) {
background-color: green;
}
vaadin-grid::part(selected-row) {
background-color: green;
}
seems to have no effect. But its possible to change the background-color of the selected row by
vaadin-grid::part(selected-row-cell) {
background-color: yellow;
}
Also hover effects can be added on cell level, but the ::part(row) selector has no effect.
What am I doing wrong? Is there any workaround?