mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#webcomponents

1 Beitrag1 Beteiligte*r0 Beiträge heute
Will Browar 👨🏻‍💻<p>Admin Bar Component got a tiny facelift this weekend and I’d love to hear feedback. The point of this update is to make Admin Bar feel a little better on the page, instead of only full-width across the viewport.</p><p>Check out the new look here:</p><p><a href="https://wbrowar.com/web-components/admin-bar-component" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">wbrowar.com/web-components/adm</span><span class="invisible">in-bar-component</span></a></p><p><a href="https://hachyderm.io/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://hachyderm.io/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a></p>
Nathan Knowler<p>In custom elements, is it best to create one MutationObserver that handles every instance of the custom element or observers per instance, then set up and tear down the observer inside the custom element lifecycle? The target would be the custom element itself (or something within its shadow tree). <a href="https://sunny.garden/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://sunny.garden/tags/WebPerf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebPerf</span></a></p>
Will Browar 👨🏻‍💻<p>Admin Bar Component 1.5.4 is out!</p><p>In light of the Apple Glass stuff I learned about CSS’s `prefers-reduced-transparency` and applied it to the glassy background of Admin Bar Component.</p><p><a href="https://hachyderm.io/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://hachyderm.io/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://hachyderm.io/tags/glass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>glass</span></a></p><p><a href="https://github.com/wbrowar/admin-bar-component" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/wbrowar/admin-bar-c</span><span class="invisible">omponent</span></a></p>
Kai<p>The beta release of web awesome (formerly shoelace) is here and I am excited about all that cool web component stuff!</p><p><a href="https://webawesome.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">webawesome.com/</span><span class="invisible"></span></a></p><p><a href="https://digitalcourage.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://digitalcourage.social/tags/webawesome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webawesome</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Previews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Previews</span></a><br>Kelp · A customizable UI library that needs no build step <a href="https://ilo.im/164ypi" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/164ypi</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/Library" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Library</span></a> <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://mastodon.social/tags/CDN" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CDN</span></a> <a href="https://mastodon.social/tags/WebStandards" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebStandards</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Frontend" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Frontend</span></a></p>
kalvn<p>Qu'est-ce que le shadow DOM ?</p><p>🔗 <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.mozilla.org/en-US/do</span><span class="invisible">cs/Web/API/Web_components/Using_shadow_DOM</span></a></p><p><a href="https://mastodon.xyz/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://mastodon.xyz/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a> <a href="https://mastodon.xyz/tags/DOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DOM</span></a> <a href="https://mastodon.xyz/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Proposals" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Proposals</span></a><br>Declarative templating API proposal · “The time is right for a DOM templating API.” <a href="https://ilo.im/164yqf" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/164yqf</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/Templating" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Templating</span></a> <a href="https://mastodon.social/tags/DOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DOM</span></a> <a href="https://mastodon.social/tags/API" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>API</span></a> <a href="https://mastodon.social/tags/Frameworks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Frameworks</span></a> <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://mastodon.social/tags/WebPlatform" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebPlatform</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Frontend" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Frontend</span></a> <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>Thinking about <a href="https://mastodon.social/tags/vibecoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vibecoding</span></a> an implementation of <a href="https://mastodon.social/tags/VRML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VRML</span></a> in <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a></p><p><a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/javaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javaScript</span></a> <a href="https://mastodon.social/tags/vr" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vr</span></a> <a href="https://mastodon.social/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
Friday Front-End<p>Bluesky Likes Web Components: "I set out to announce two components I wrote for displaying Bluesky likes and ended up ranting about the pain of building accessible, localizable <a href="https://hachyderm.io/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> in 2025. The components are still here, though — lucky you?" <a href="https://lea.verou.me/blog/2025/bluesky-likes/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lea.verou.me/blog/2025/bluesky</span><span class="invisible">-likes/</span></a></p>
castastrophe<p>Web components compadres, what is your favorite way to style your web components? Thinking about techniques that consider customizability and CSS developer experience, as well as performance. Share with me your favorite libraries and tell me why you like their approach! <a href="https://front-end.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://front-end.social/tags/styling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>styling</span></a> <a href="https://front-end.social/tags/designsystems" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>designsystems</span></a></p>
Burton Smith<p>As promised, here is a post on subclassing `Event` to create truly custom <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> events. I'm excited to explore this space a bit more for creating specialized events, not just for <a href="https://mastodon.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a>.</p><p><a href="https://dev.to/stuffbreaker/creating-truly-custom-events-for-web-components-5bp5" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/stuffbreaker/creating-t</span><span class="invisible">ruly-custom-events-for-web-components-5bp5</span></a></p>
westbrook<p><span class="h-card" translate="no"><a href="https://toot.cafe/@bkardell" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>bkardell</span></a></span> <span class="h-card" translate="no"><a href="https://indieweb.social/@nomster" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nomster</span></a></span> Very interesting. Shares desires with a lot of discussions that have been happening in the <a href="https://mastodon.social/tags/webComponentsCG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponentsCG</span></a> as of late. Definitely see the super powers this could bring to both SPA AND MPA structures sites/applications. How can the community support moving something like this forward?</p><p><a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mastodon.social/tags/htmlInHtml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>htmlInHtml</span></a></p>
Schalk Neethling<p><a href="https://hachyderm.io/tags/TIL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TIL</span></a> - <a href="https://lordicon.com/docs/web" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lordicon.com/docs/web</span><span class="invisible"></span></a> <a href="https://hachyderm.io/tags/icons" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>icons</span></a> <a href="https://hachyderm.io/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://hachyderm.io/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a></p>

thanks to a discussion on reddit [1] and some links [2] I came across a different view on .
In short, just wrap content in a instead of trying to "upgrade" it. Like so:

<user-avatar>
<img src>
</user-avatar>

I always thought until now that it should rather be

<img src is=user-avatar>

but `is` is not widely usable.
I still need to digest it. I see the use cases, but somehow feels still strange

[1] reddit.com/r/HTML/comments/1ld
[2] adactio.com/journal/20618

I hate saying things which seem blindingly obvious, but when Famous People™ such as Theo on YouTube make these basic mistakes, I wonder. 🧐

So here you go:

`document.querySelector("# my-dumb-button").addEventListener(...)` is completely obsolete in the year 2025.

Never do that again please. You don't need to!

If you're wondering “well, what should I do instead?”, check the comments; we'll talk about what to do instead. Apparently it will BLOW YOUR MIND! 😂