rasso·2 tháng trước·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 tháng trước·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 tháng trước·discussThis is my all-time favourite from Shatner: "It hasn't happened yet"https://youtu.be/7GnoLJIIS4w?si=zP_mlOxV1tKMMkQx
rasso·6 tháng trước·discussSee my other comment: you can set default styles using:where(:not(:defined)) { display: block }
rasso·6 tháng trước·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 tháng trước·discussThis is how you can set default styles for all your custom elements: :where(:not(:defined)) { display: block; }