[Bug report]: duplicated color variables generated in the css
Closed this issue · 1 comments
mmexvr commented
Requirements before reporting
- No duplicated issue reported.
- I have read the contribution guidelines.
- I have checked the lastest version if the bug exist there. See all avaliable packages at npmJS.com
- I have made sure that the issue comes from SDDS packages by removing SDDS from my project as a test.
- I have followed the installation guide.
Package
@scania/colour
Package versions
2.0.1
Browser
Chrome
Framework
Angular
Version
12+
Reproduction steps
- Open an app that uses sdds
- Inspect the HTML element in the browser
- Scroll to the part with the color variables
- See the multiple instances of the CSS variables
Code example
Screenshots
Expected behaviour
The colors should only be output once in the HTML.
Possible cause:
The color package has files that import the tokens.scss file multiple time
Console errors
No console problem
Contact information
No response
alexlioliopoulos commented
Added to our backlog!