ZachSaucier Posted June 17, 2020 Share Posted June 17, 2020 Not that I'm aware of. I gave you three potential solutions 1 Link to comment Share on other sites More sharing options...
Lichay Posted June 17, 2020 Author Share Posted June 17, 2020 2 minutes ago, ZachSaucier said: Not that I'm aware of. I gave you three potential solutions ok. thank you i hope they will fix it in future Link to comment Share on other sites More sharing options...
Solution Sub X Posted September 10, 2020 Solution Share Posted September 10, 2020 On 6/18/2020 at 4:10 AM, Lichay said: i hope they will fix it issue . no another way to fix it? Import ViewEncapsulation from '@angular/core' it works for me 1 Link to comment Share on other sites More sharing options...
Lichay Posted January 21, 2021 Author Share Posted January 21, 2021 On 9/10/2020 at 11:57 AM, Sub X said: Import ViewEncapsulation from '@angular/core' it works for me Thanks it really work! 1 Link to comment Share on other sites More sharing options...
Lichay Posted March 16, 2021 Author Share Posted March 16, 2021 On 9/10/2020 at 11:57 AM, Sub X said: Import ViewEncapsulation from '@angular/core' it works for me Hey I have a small question I use that but I am using CSS global variable :host but after I use your solution I need to change to :root and it wrong way to change it inside component. Do you have another solution? Thanks anyway for first way Link to comment Share on other sites More sharing options...
Sub X Posted March 16, 2021 Share Posted March 16, 2021 31 minutes ago, Lichay said: Hey I have a small question I use that but I am using CSS global variable :host but after I use your solution I need to change to :root and it wrong way to change it inside component. Do you have another solution? Thanks anyway for first way If you are using css variables I think you should always use it on the root style.css or make a variable.css file and import it on you component css this will fix your problem I think. Link to comment Share on other sites More sharing options...
Lichay Posted March 16, 2021 Author Share Posted March 16, 2021 1 hour ago, Sub X said: If you are using css variables I think you should always use it on the root style.css or make a variable.css file and import it on you component css this will fix your problem I think. it wrong way use root style when I need same style on one component only Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now