Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
ember-style-modifier
Advanced tools
{{style}} modifier to set an element's style using the CSSStyleDeclaration API.
This addon provides a {{style}}
element modifier to set element's style.
This allows to set custom CSS of an element without requiring a Content Security Policy style-src-attr: "unsafe-inline"
.
It supports the same versions as ember-modifier-manager-polyfill
does.
ember install ember-style-modifier
It expects CSS declarations as named arguments or as a hash as positional
argument. Property names are supported in dasherized as well as in camelCase
spelling. Value must be a string or undefined
. You may set a priority by
adding an "!important"
suffix.
<p
{{style
border="1px"
padding="1em !important"
}}
>
</p>
<p
{{style
(hash border="1px" padding="1em !important")
}}
>
</p>
You may pass multiple hashes as positional arguments and combine hashes with named arguments. If multiple hashes are passed and contain CSS declarations for the same property, last one wins. If hashes and named arguments declare same property, named argument wins.
Adding styles to pseudo-elements is not supported.
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
{{style}} modifier to set an element's style using the CSSStyleDeclaration API.
The npm package ember-style-modifier receives a total of 51,331 weekly downloads. As such, ember-style-modifier popularity was classified as popular.
We found that ember-style-modifier demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.