-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support: css custom properties #165
Comments
Having issues trying to do this myself with Angular Universal. Basically doing this: elementRef.nativeElement.style.setProperty(k, v); With a CSS var like: {
"key": "--grid-gap",
"value": "1rem"
} And getting a bucket of errors:
|
@intellix, try this: constructor(
el: ElementRef,
private renderer: Renderer2,) {
this.renderer.setStyle(el.nativeElement, '--grid-gap', `1rem`, RendererStyleFlags2.DashCase);``` |
Domino uses the CSSLint css parser; see ccc98fe. Ideally that support would be added upstream and then brought into domino. |
i'm having issues with this too. I'm using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a way to set css custom properties?
The text was updated successfully, but these errors were encountered: