Replies: 1 comment
-
We try to structure the internals in such a way that you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to implement something like this:
It's proving difficult, because I can't get any external
label
to link to a<sl-switch>
b/c of the shadow DOM boundary. So it seems like I have to use thelabel
that's rendered bysl-switch
, but that renders on the wrong side of the switch.The best solution I've come up with so far is to use the CSS
order
property or reverse the flexbox direction to put the label first, but that feels a little brittle. What do you think of alabel-position="start"
attribute or aprefix-label
slot?Beta Was this translation helpful? Give feedback.
All reactions