Day 28: custom properties and web components

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
We already know that we can encapsulate styles within a web component and we know that web components inherit styles. Another interesting feature of web components in terms of CSS is that custom properties used in a web component can be modified from the outside.Let's take this basic alert component. class Alert extends HTMLElement { ...