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

$color: var(--primary-default) is not a color #26032

Closed
1 task
artepic opened this issue Nov 19, 2022 · 2 comments
Closed
1 task

$color: var(--primary-default) is not a color #26032

artepic opened this issue Nov 19, 2022 · 2 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@artepic
Copy link

artepic commented Nov 19, 2022

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

SassError: $color: var(--primary-default) is not a color.

16 │ track-color: color.adjust(mdc-theme-color.prop-value($color), $alpha: -0.75),
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reproduction

Steps to reproduce:

$theme-primary: (
default: var(--primary-default),
...
...
);

$my-theme: (
primary: $theme-primary,
...
...
...
);

@include mat.all-component-themes($my-theme);

after short inspection, generated by:
@include progress-bar-theme.theme($theme-or-color-config);

Expected Behavior

supported var(--xyz)

Actual Behavior

Compiled with problems

Environment

  • Angular: 15
  • CDK/Material: 15
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
@artepic artepic added the needs triage This issue needs to be triaged by the team label Nov 19, 2022
@crisbeto
Copy link
Member

Duplicate of #25981.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants