Using Vaadin14 I want to change the width of the label (caption) of the TextField. With the default value the caption is only partially displayed even if I set the size of the TextField to "setSizeFull". I tried the following (similar to the Vaadin14 app start code):
TextField queryString = new TextField();
queryString.setWidth("200px");
queryString.setLabel("long label text, long label text, long label text");
queryString.setThemeName("longlabel");
CSS file import:
@CssImport(value = "./styles/vaadin-text-field-styles.css", themeFor = "vaadin-text-field")
and the content of the vaadin-text-field-styles.css is:
:host([theme~="longlabel"]) [part="label"] {
width: 400px;
}
This does not change the width of the label.
Is there a lookup for the default CSS settings of the Vaadin14 components? That would be helpful also for the change of other components.