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

[Icons] themeColor of the Font and SVG icon components cannot be updated dynamically #4148

Closed
georgi-sla opened this issue Nov 6, 2023 · 1 comment

Comments

@georgi-sla
Copy link
Contributor

Describe the bug
Currently, when the developer tries to modify the themeColor property dynamically, the color of the SVGIconComponent or the IconComponent is not updated as expected.

To Reproduce

  1. Create either an SVGIconComponent or an IconComponent.
  2. Set the themeColor property.
  3. Try to modify the themeColor property dynamically.

Please, check out the following StackBlitz demo: https://stackblitz.com/edit/angular-hpldja-uxskbg

Expected behavior
Modifying the themeColor property dynamically should also update the color of the icon.

Additional context
It seems that the old class is not being removed when the themeColor property is adjusted:
image

Workaround: https://stackblitz.com/edit/angular-rlz6sq-86ugc4

@dtopalov
Copy link
Contributor

fixed in v.14.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants