Hacker News new | ask | show | jobs
by spankalee 3336 days ago
If your custom elements put their internals in shadow roots they'll be protected from page styling.
1 comments

Sorry custom elements might have been the wrong term to use. I mean custom interfaces, say an image gallery or a realtime search box where you would use elements like buttons and input's in a different way then the usage this framework defines for you. Using a nav both in your header and sidebar is a different example where these are not good defaults