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:

262
active users

#webcomponent

1 post1 participant0 posts today

For the last few weeks I've been experimenting with the new @zeroheight API. As you can imagine, this opens the door for deeper integration with your #DesignSystems and zeroheight.

I've put together a tutorial which shows how you can use just a few lines of JavaScript to embed your release notes on any web page. And of course, I wrapped it into a handy #WebComponent. Enjoy 😊

zeroheight.com/blog/zeroheight

zeroheight · zeroheight API Tutorial — Add Design System Releases to Any WebsiteAdd your design system's release history and link to those releases with this tutorial and the new zeroheight API

#TIL, (and I cannot find documented), but can easily replicate is that when a #WebComponent #CustomElement's `connectedCallback()` is called, `innerHTML` is undefined, UNLESS, you wait to define your custom element after DOMContentLoaded.

I wish there was a callback for a custom element that amounted to “the element has been loaded", but I can see that this doesn't necessarily make sense.

[Can't recreate in codepen since it runs all stuff after DOM loaded.]

gist.github.com/davetron5000/2