skip to Main Content

Css – How correct import styles

I using vanilla javascript + Vite, why styles doesn't work? this point I import style of logo component and this is common style.css @import url("./CORE/Logo/style.scss"); *, body, html { box-sizing: border-box; margin: 0px; padding: 0px; } and this is section…

VIEW QUESTION

Javascript – How can access the specific html tag inside of slot in light DOM through the shadow DOM?

I've created a custom element and defined it in html as follows: ` <header> <custom-navbar links="[{title:'home'},{title:'About'}]" class="bg-purple"> <h1 slot="logo"> Amazon </h1> <navbar slot="link" class="navbar-wrapper"> <ul class="link-container"> </ul> </navbar> </custom-navbar> </header> ` An I've defined my custom element as follows: class…

VIEW QUESTION
Back To Top
Search