I'm trying to style an element inside of a shadow dom. I've tried a couple of things, namely the following:
Using JS:
document.querySelector('#select-input').shadowRoot.getElementById('#aab-select-label');
This returns an error stating: Cannot read properties of null (reading 'setAttribute')
Using CSS:
#select-input::shadow .mb-1 #aab-select-label {
height: 20px !important;
}
#select-input /deep/ .mb-1 #aab-select-label {
height: 20px !important;
}
But these selectors also don't apply any styling for some reason. The shadow root is open as far as I can see:
Does anyone know how I should style this?