rasso·2 mesi fa·discussDo you have a link for me? I'd like to learn them, but find it really hard to find them.For example, I had never heard about etc/services until 2 minutes ago
rasso·3 mesi fa·discussFor what it's worth: they live up to their own standards. Here, for example, is the source code that powers their VIP platform product:https://github.com/Automattic/vip-go-mu-pluginsIt must be open sourced because it's based on WordPress. I still love that.
rasso·5 mesi fa·discussThis is my all-time favourite from Shatner: "It hasn't happened yet"https://youtu.be/7GnoLJIIS4w?si=zP_mlOxV1tKMMkQx
rasso·6 mesi fa·discussSee my other comment: you can set default styles using:where(:not(:defined)) { display: block }
rasso·6 mesi fa·discussBeware that connectedCallback runs _every time_ a custom element is added to the dom. So you should make sure to only add event listeners once by tracking internally if the element was already initialized.
rasso·6 mesi fa·discussThis is how you can set default styles for all your custom elements: :where(:not(:defined)) { display: block; }