Skip to content
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

Theming cannot use css variables #209

Open
GabrielInTheWorld opened this issue Aug 19, 2021 · 0 comments
Open

Theming cannot use css variables #209

GabrielInTheWorld opened this issue Aug 19, 2021 · 0 comments

Comments

@GabrielInTheWorld
Copy link

What is the expected behavior?

I have a theme-palette filled by variables (like var(--theme-primary-500)). I expect, that I can use the pbl-ngrid-theme with that theme-palette.

What is the current behavior?

Currently, if I have a theme-palette like described, an error is thrown:

Error in turbo_modules/@pebula/[email protected]/_theming.scss (849:25)
$color: var(--theme-primary-500) is not a color.
╷
849 │ background-color: transparentize($cell-focus-color, 0.75);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
../turbo_modules/@pebula/[email protected]/_theming.scss 849:25 pbl-ngrid-theme()
../~/src/styles.scss 83:1 root stylesheet

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz to reproduce: Stackblitz

Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?

The error was seen in the following configuration:

@angular/x: 8.x.x
@pebula/ngrid*: 3.1.4

as well as

@angular/x: 12.x.x
@pebula/ngrid*: 4.0.0-alpha.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant