News for hackers. Stuff that matters.
Re:If Web Components are so great, why am I not using them? by kerkeslager on Saturday August 05, 2023 @11:39AM (#37013086)
When I have some time I'll play around with this: I'm certainly open to the idea that there's some stuff I don't know about slots. But I have a question: When you append the slot to the shadow root, doesn't that mean that you lose styling in the slot contents?
Re:If Web Components are so great, why am I not using them? by LorenzA on Saturday August 05, 2023 @01:23PM (#37014296)
no things inside slots keep the styling from the outside
Re:If Web Components are so great, why am I not using them? by kerkeslager on Saturday August 05, 2023 @09:49PM (#37018190)
Hm, I stand by my comment that slots are overcomplicated, but that might actually make it worth it.
Re:If Web Components are so great, why am I not using them? by kerkeslager on Sunday August 06, 2023 @10:53PM (#37029502)
Okay, I got around to trying this out, and that's cool. Thanks for explaining this.
Re:If Web Components are so great, why am I not using them? by LorenzA on Monday August 07, 2023 @01:22PM (#37037554)
you are welcome happy to help.