I would like to set the padding of the cells in the first columns.
I tried it like descrip/questions/74452065/how-to-style-grid-cells-in-vaadin but i does not work.
I have a component that contains a grid. The css import at the component looks like this:
@CssImport(themeFor = "vaadin-grid", value = "./vaadin-grid.css")
public class MyComponent extends AbstractCompositeField<Component,....
The vaadin-grid.css file looks like this:
.vaadin-grid ::part(first-column-cell) {
padding-left: 0;
}
Tried to use the selectors that are described here https://vaadin.com/docs/latest/components/grid/styling#part-name-generator:~:text=vaadin%2Dgrid%3A%3Apart(first%2Dcolumn%2Dcell) but it does not work.
How does the selector has to look like that only the cells of the first column is modified?
2