Jmix 2x ... set textField label className

I need to set the label format to BOLD for single textFields in a formlayout.
Is there any doc where to start and how to do that?
Will look into the onboarding demo app and got a custom theme.

If there would be shorter way then try and error for some days, would be great :slight_smile:

BR
Roland

The easiest way is to define a style for the text field.

Something like this:

vaadin-text-field[class~='bold-label']::part(label) {
    font-weight: 700;
}
    <textField label="Bold label" classNames="bold-label"/>

image

Regards,
Dmitriy

1 Like

Hi Dmitriy,

thx… that was the starting point I needed.
The rest I will find now here, I hope: Components | Vaadin Docs

BR
Roland