My CustomField has a FormLayout inside, and I want to change the #layout element within the shadow-root. While it can be done with JavaScript:
document.querySelector("#myid > vaadin-form-layout")
.shadowRoot
.querySelector("#layout").style.<property>=hz;
Can the style of an element be changed using CSS instead?
Thank you!