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

why the css is destroyed when i use $router.push? #9421

Closed
FreakFrog opened this issue Jun 10, 2021 · 2 comments
Closed

why the css is destroyed when i use $router.push? #9421

FreakFrog opened this issue Jun 10, 2021 · 2 comments
Labels

Comments

@FreakFrog
Copy link

this is my home page when i load my website index.

https://imgur.com/a/IhixTAm

but when I redirect to the page from a component in another page using

this.$router.push("/")

the page load distorted and becomes missed up like this.

https://imgur.com/a/xa6yjyV

as you can see buttons/fonts and other stuff is messed up.

I'm using vuejs Nuxt basic configuration

Copy link
Member

Likely it's to do with the order of your CSS (that is, there are multiple rules with the same level of specificity targeting your elements, and this is causing an issue). The solution (if so) is likely to make sure that you increase the specificity of the rules you want to prevail.

If you think that's not the issue, please do comment with a reproduction and I'll reopen this and investigate 👍

Similar issues: #2211, #2770, #9325, #8896, #4219

@FreakFrog
Copy link
Author

FreakFrog commented Jun 10, 2021

thank you, its the case my other page is not scoped because I'm using beufy and cant modify unless I make css universal on that page. i fixed it

@danielroe danielroe added the 2.x label Jan 18, 2023
@danielroe danielroe mentioned this issue Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants