Hello,
I am trying to modify a combo-box and its drop-down items.
At the moment I have managed to style the vaadin-combo-box-item
doing the following:
//Kotlin class
@CssImport("./styles/selection-combobox-item.css", themeFor = "vaadin-combo-box-item")
class MainView() : HorizontalLayout() { ... }
// CSS
:host {
font-family: monospace;
}
However, I am also trying to achieve the same for the combo-box text-field as well.
So I tried
@CssImport("./styles/selection-combobox.css", themeFor = "vaadin-combo-box")
@CssImport("./styles/selection-combobox-item.css", themeFor = "vaadin-combo-box-item")
but it is not permitted to use @CssImport
more than once, following error appears:
Repeatable annotations with non-SOURCE retention are not yet supported
Is there any way of achieving this in my manner?