medblocks / medblocks-ui

Web Components Library for Medblocks Ecosystem
https://www.npmjs.com/package/medblocks-ui
Apache License 2.0
54 stars 15 forks source link

[Question] Modify CSS in Shoelace #44

Open prillymonials opened 1 year ago

prillymonials commented 1 year ago

Hi @sidharthramesh

I want to style inside the <sl-input> but there is a <mb-input> parent. Is there a way to access the Shadow DOM in sl-input? Thank you.

sidharthramesh commented 1 year ago

Hey @prillymonials, this is not currently possible. But if the mb-input exposes the sl-input as a part, you can customize it using CSS part selectors.. If you want to select parts deeper inside sl-input, we'll have to use exportparts.

I'm open to a PR on this. Exposing parts partially has been done for a few elements already.