
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
ngx-shadow-class
Advanced tools
The library provides simple directive for Angular which does the css injection
npm i --save ngx-shadow-classShadowClassModule into your app.module or other shared moduleshadow-class="my-class" to inject css into the shadow element<components_tag_name>.<style from received list> and inject the body into the
styles of the shadow DOM as host:(.<style from received list>) ....Important to create style by specifying component tag and class name.
Use /deep/ if the style is in the host: ex below
Ex: ion-toggle.my-class-name ...
The example is provided based on the Ionic 4.0.x project
<ion-header>
<ion-toolbar>
<ion-title>
Ionic Blank
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<ion-toggle class="test-class" shadow-class="test-class test-class-global"></ion-toggle>
</ion-content>
test-class):host {
/deep/ ion-toggle {
&.test-class {
.toggle-inner {
width: 10px;
}
button {
z-index: 9999;
}
}
}
}
test-class-global)ion-toggle {
&.test-class-global {
.toggle-inner {
width: 10px;
}
}
}
FAQs
Directive to inject styles into the shadow components
The npm package ngx-shadow-class receives a total of 22 weekly downloads. As such, ngx-shadow-class popularity was classified as not popular.
We found that ngx-shadow-class demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.