Hi there
Since I am not a CSS specialist at all, I hope someone can help me here. I want to change the CSS for some grid cells and I tried to do this by using
column.setClassNameGenerator(object -> doSomething(object)?"selectedresult":null);
So far so good, the HTML now looks like this:
<td id="vaadin-grid-cell-7" role="gridcell" tabindex="-1" part="cell body-cell" last-column="" reorder-status="undefined" aria-selected="true" style="width: 100px; flex-grow: 1; order: 20000000;" class="selectedresult"><slot name="vaadin-grid-cell-content-7"></slot></td>
Currently my CSS looks like this:
.selectedresult { color: yellow; }
The problem now is that the CSS class is completely ignored. Is this because of the shadow dom? How would I change my CSS in order to get this to work?