Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (12 loc) · 660 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 660 Bytes

@jehon/css-inherit

Test

When using web components without a framework, I get the problem that the styles from the host are not copied into the shadow of the component. That's per design.

Using this tag allow styles from host to be imported into the shadow root of your component

Usage

   this.shadowRoot.innerHTML += '<jehon-css-inherit></jehon-css-inherit>

Parameters

parameter explanation
jehon-css-inherit-local exclude that style tag from import