Replies: 1 comment 4 replies
-
As a consumer, you don't need to worry about https://shoelace.style/components/tag?id=css-parts In the case of For example, if you add the following CSS to your example, you'll see this: .tags-removable sl-tag::part(remove-button) {
color: red
}
.tags-removable sl-tag::part(remove-button__base) {
outline: dotted 1px blue;
} Since icon buttons only expose a I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
i can't combine both part and exportparts in custom element. For styling outside the custom element we have to exportparts which can be customizable. For instance, ex sl-icon-button: If it only part attribute in sl-icon-button i able to style it.
But if i added along with exportparts of inner element parts. Only the exportedparts are working but the part of sl-icon-button itself are ignored
Demo
i have tried apply styling on part
sl-tag::part(remove-button)
which is not working along exportpartshttps://codepen.io/kishokz92/pen/QWmjEqb
Screenshots
Browser / OS
i want to better understand the what's the expected behaviour. Any help would be appreciated. Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions