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

bug(Theming): Unable to create a theme with CSS variables after v15 update #26066

Closed
1 task done
tutkli opened this issue Nov 23, 2022 · 2 comments
Closed
1 task done
Labels
needs triage This issue needs to be triaged by the team

Comments

@tutkli
Copy link

tutkli commented Nov 23, 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

14

Description

In v14 you could create a Material Theme dinamically by defining the palettes with CSS variables and later assign a color value to those variables. This is no longer possible in v15.

Reproduction

Check this Stackblitz: https://stackblitz.com/edit/components-issue-ml4ejy

Steps to reproduce:
Define a palette with CSS variables
Set CSS variable values in component

Expected Behavior

Ability to assign CSS variables values when defining a palette.

Actual Behavior

You can't define a theme with CSS variables.

Environment

  • Angular: 15.0.0
  • CDK/Material: 15.0.0
  • Browser(s): All
  • Operating System (e.g. Windows, macOS, Ubuntu): All
@tutkli tutkli added the needs triage This issue needs to be triaged by the team label Nov 23, 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 24, 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