I would like to adapt a combo box component's CSS. The combo box has my style class custom1
added which should disable border radius for left corners.
In my shared-styles.html, I tried to adapt CSS properties:
.custom1 {
--lumo-border-radius: 0px;
}
This is changing the styles but it is not exactly what I want. According to docs, I should follow this wiki to apply local scope styles for the web component. So, I tried:
<custom-style>
<style>
...
</style>
</custom-style>
<dom-module id="my-combo-box-theme" theme-for="vaadin-combo-box">
<template>
<style include="vaadin-combo-box-default-theme">
:host(.custom1) [part="input-field"] {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
</style>
</template>
</dom-module>
However, it didn't work and the part input-field
is located like that:
<vaadin-combo-box>
<vaadin-text-field>
...
<div part="input-field">
...
</div>
...
</vaadin-text-field>
</vaadin-combo-box>
Which is a problem I guess, because it is a shadow DOM under a shadow DOM? How can I style that part?