veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

293
active users

#webcomponents

1 post1 participant0 posts today
Vincent Agnano<p>LegoJs v1.9.0 is out with more simplicity and more modern <a href="https://mastodon.social/tags/JS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JS</span></a> to write <a href="https://mastodon.social/tags/native" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>native</span></a> <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a>&nbsp;🚀 </p><p><a href="https://github.com/Polight/lego/pull/37#issuecomment-2803062579" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Polight/lego/pull/3</span><span class="invisible">7#issuecomment-2803062579</span></a></p><p>Documentation will follow.</p><p><a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/svelte" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>svelte</span></a> <a href="https://mastodon.social/tags/alternative" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>alternative</span></a> <a href="https://mastodon.social/tags/frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>frontend</span></a> <a href="https://mastodon.social/tags/templating" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>templating</span></a> <a href="https://mastodon.social/tags/rendering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rendering</span></a></p>
Peter Kröner<p>Circumstances have conspired to make me build and release a flexible web component to toggle dark/light mode:</p><p>📦 <a href="https://www.npmjs.com/package/@sirpepe/dark-mode-toggle" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">npmjs.com/package/@sirpepe/dar</span><span class="invisible">k-mode-toggle</span></a><br>💾 <a href="https://github.com/SirPepe/dark-mode-toggle" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/SirPepe/dark-mode-t</span><span class="invisible">oggle</span></a></p><p><a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a></p>
JWSGeek<p>I'm in total agreement with this post: <a href="https://gomakethings.com/the-shadow-dom-is-an-antipattern/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gomakethings.com/the-shadow-do</span><span class="invisible">m-is-an-antipattern/</span></a> - the ability to have a global CSS system is something that has been encouraged for YEARS as a matter of reducing the download footprint, yet shadow dom discourages this.</p><p>And there shouldn't be any technical reason why slots should require shadow. take this declared child, move it to that spot in my html structure. It can be (and has been) faked by multiple frameworks including lit, stencil, and JET.</p><p>'generic' web components that use internal CSS to define the layout, and then rely on a global css system to be flexible in appearance, is what we web-devs really want.</p><p><a href="https://universeodon.com/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://universeodon.com/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> <a href="https://universeodon.com/tags/shadowdom" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shadowdom</span></a></p>
Peter Kröner<p>Ornament 3.0.1: one less <a href="https://mastodon.social/tags/TypeScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeScript</span></a> annoyance 🫠 </p><p><a href="https://www.npmjs.com/package/@sirpepe/ornament" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">npmjs.com/package/@sirpepe/orn</span><span class="invisible">ament</span></a></p><p><a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a></p>
Jon<p>What is the most modern and bestest lightweight barcode reader (just the regular kind of barcodes, no need for anything fancy) <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/typescript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>typescript</span></a> <a href="https://mastodon.social/tags/browser" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>browser</span></a> <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Guides" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Guides</span></a><br>Simplify sharing · How to make content sharing effortless on your website <a href="https://ilo.im/16350b" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/16350b</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/Sharing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Sharing</span></a> <a href="https://mastodon.social/tags/Content" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Content</span></a> <a href="https://mastodon.social/tags/Webpage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Webpage</span></a> <a href="https://mastodon.social/tags/ProgressiveEnhancement" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProgressiveEnhancement</span></a> <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Frontend</span></a> <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a></p>
Maarten<p>Such a weird issue where an input is slotted locally but when I put it on the server it’s not so my styles aren’t applied <a href="https://mastodon.workingweb.nl/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a></p>
Peter Kröner<p>📦 Ornament 3.0: <a href="https://www.npmjs.com/package/@sirpepe/ornament" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">npmjs.com/package/@sirpepe/orn</span><span class="invisible">ament</span></a></p><p>Had to fix a few API brain farts, which means breaking changes, which means a major release with next to zero material changes. Semver 🙄 </p><p><a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Pitfalls" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pitfalls</span></a><br>The burden of custom form validations · When over-engineered form validations backfire <a href="https://ilo.im/16327e" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/16327e</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/Form" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Form</span></a> <a href="https://mastodon.social/tags/Validation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Validation</span></a> <a href="https://mastodon.social/tags/Browser" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Browser</span></a> <a href="https://mastodon.social/tags/Library" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Library</span></a> <a href="https://mastodon.social/tags/Framework" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Framework</span></a> <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a> <a href="https://mastodon.social/tags/DesignSystems" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DesignSystems</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Frontend</span></a> <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a></p>
Burton Smith<p>Is there a CSS equivolent to JSDoc? It would be really nice to co-locate my docs next to my CSS variables in my web components.</p><p><a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a></p>
mbrambilla<p>Built my first web component. Create image placeholders. Might not be the best implementation, but I am happy with it. Check it out. Feedback welcome!</p><p><a href="https://github.com/shadeweave/sw-image" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/shadeweave/sw-image</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a></p>
Frontend Dogma<p>Web Components vs. Framework Components: What’s the Difference?, by @thedocwhocodes@x.com (<span class="h-card" translate="no"><a href="https://mastodon.social/@smashingmag" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>smashingmag</span></a></span>):</p><p><a href="https://www.smashingmagazine.com/2025/03/web-components-vs-framework-components/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">smashingmagazine.com/2025/03/w</span><span class="invisible">eb-components-vs-framework-components/</span></a></p><p><a href="https://mas.to/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> <a href="https://mas.to/tags/components" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>components</span></a> <a href="https://mas.to/tags/frameworks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>frameworks</span></a> <a href="https://mas.to/tags/html" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>html</span></a> <a href="https://mas.to/tags/comparisons" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>comparisons</span></a></p>
westbrook<p>So…whether you like generative images or not (heck, I’m not sure if I like generative images, especially not this way) we made a thing at my new(-ish) gig: <a href="https://preview.reve.art/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">preview.reve.art/</span><span class="invisible"></span></a> It’s the ways of making images AFTER this first foray that I’m most excited about, but “any sufficiently complex system…”. Check it out as you will and share what you’re able to bring to live?</p><p><a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/aiArt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aiArt</span></a> <a href="https://mastodon.social/tags/photography" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>photography</span></a> <a href="https://mastodon.social/tags/shoelaceStyles" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shoelaceStyles</span></a> <a href="https://mastodon.social/tags/creativity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>creativity</span></a> <a href="https://mastodon.social/tags/justTheBeginning" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>justTheBeginning</span></a></p>
Burton Smith<p>Today, I'm excited to release the CEM Validator for your <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a>!</p><p>This is designed to be an automated check before your components go to production. I know there is a ton of stuff that can be added to this, but I decided to start small. Features include:</p><p>✅ package.json validation<br>✅ module and definition path validation<br>✅ a check to ensure you are exporting all types for your APIs<br>✅ a check to make sure the tag name is present for your components</p><p><a href="https://wc-toolkit.com/cem-utilities/cem-validator/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">wc-toolkit.com/cem-utilities/c</span><span class="invisible">em-validator/</span></a></p>
Kito D. Mann<p>Thanks to everyone who came to my "Future-proof your Web Apps with <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a> and <a href="https://mastodon.social/tags/Lit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Lit</span></a>" talk at <a href="https://mastodon.social/tags/Frontrunners" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Frontrunners</span></a> (<a href="https://frontrunners.tech" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">frontrunners.tech</span><span class="invisible"></span></a>)! You can find the mindmap and demo code here: <a href="https://kitomann.com/#/sessions/14/future-proof-your-web-apps-with-web-components-and-lit" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitomann.com/#/sessions/14/fut</span><span class="invisible">ure-proof-your-web-apps-with-web-components-and-lit</span></a> . <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/typescript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>typescript</span></a></p>
Brandon Zhang 🇨🇳<p><span class="h-card" translate="no"><a href="https://nullptr.rehab/@voyd" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>voyd</span></a></span> That’s horrible. Maybe try <a href="https://mastodon.online/tags/WebComponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebComponents</span></a> based UI components?</p>
Chris Smith<p>If you build a custom element and it uses a child element with a CSS shadow part to expose its base styling, e.g. ::part(base), then this will be ignored if the custom element has content-visibility: auto.</p><p>So, if you want cards with box-shadow, the shadow styling has to be on the custom element itself, or :host, not the ::part() pseudo selector.</p><p><a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> <a href="https://mastodon.social/tags/customelements" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>customelements</span></a></p>
Kito D. Mann<p>I'm looking forward to speaking about <a href="https://mastodon.social/tags/lit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lit</span></a> and <a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> at the Frontrunners conference on Friday, March 21st in Washington, DC. It's a nice, one-day event. If you're local, check it out! <a href="https://frontrunners.tech/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">frontrunners.tech/</span><span class="invisible"></span></a>.</p>
Christian Martin Nies<p><a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> Solution: Do not push to the array, but rather add it.<br>document.adoptedStylSheets.push(yourStyleSheet) does not work</p><p>document.adoptedStyleSheets = [...document.adiptedStyleSheets, yourStyleSheet] does.</p><p>So, yes we can use it also in older browsers, who give a false positive…</p>
Christian Martin Nies<p><a href="https://mastodon.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webcomponents</span></a> Just in case someone out there is in a similar situation of using adoptedStyleSheets and CSSStyleSheets in older browsers and using the great polyfill. If it does not kick-in, it MIGHT be, that chrome and safari implemented and rolled it out back in the days with frozen array.</p>