How can I access an element which is deep inside the shadow-root?
<vaadin-combo-box>
#shadow-root
<vaadin-text-field id="input">
<vaadin-combo-box-dropdown-wrapper id="overlay">
#shadow-root(open)
<vaadin-combo-box-dropdown id="dropdown">
#shadow-root(open)
<vaadin-combo-box-overlay id="overlay">
#shadow-root(open)
<div part="overlay" id="overlay">
<div part="content" id="conent">
#shadow-root(open)
<div id="scroller">
<iron-list id="selector">
#shadow-root(open)
<vaadin-combo-box-item>
......
I want to style a vaadin-combo-box-item element but I don't know how to access this element.
There's no easy answer to that because you have to access a very deep DOM element.
To make it little bit less painful you have to make a function which access provided shadow dom of element like this:
Nevertheless, this amount of shadowDom elements looks like an architectural mistake