Grid cell font change

I’m trying to change the font family of a grid cell using grid.addColumn(PartyEntity::getCreditLimit) .setHeader("Credit Limit") .setTextAlign(ColumnTextAlign.END) .setPartNameGenerator(partyEntity1 -> "decimal-amount") .setAutoWidth(true);.

The CSS file is vaadin-grid.styling::part(decimal-amount) { font-family: monospace; }. But I do not see any change in the font. What am I missing ?
image.png

found the issue. Grid was missing the class name styling.

you’re looking at the wrong element – the part name is applied to the element, not to the content wrapper slotted into it

Your code should work just fine, provided that the styling classname is applied to the vaadin-grid element, and that your stylesheet is getting loaded.