Expose shadow-dom using parts
Hello 👋
It would be very helpful if you could expose the shadow-dom of the components using parts, so one could fine tune some css properties
Thank you ✌️
Hi @Berhell
I'll forward this issue to the ui5-webcomponents repo, as the pure web-components are developed by them.
Besides that you can use the addCustomCSS(tag, css) function to change the styles of shadow-dom elements.
I created an example where I changed the ui5-button-root class of the Button component to red. You can find it here
Hi @Berhell
We have exposed some CSS parts that make sense to us. If you have some specific parts that you need, please attach them in this issue, so that we can take a look and decide if we are going to implement them. In the meantime, you can use the addCustomCSS method as described above
The addCustomCSS(tag, css) would be enough for now. Thanks for the tip 😉