Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
Style tag seems to be in the wrong order when updating to material-ui v5

I'm using material-ui for my next.js program and trying to update it from v4 to v5. I switch the sytle engine to styled-component for I've already been using it in my project before. After updating, I found some components such as MenuItem got broken style. (style tags in html head) I looked into the chrome console and it seems like the style tag is not in correct order. (styles override in wrong order) As you can see in the screenshot, some Mui jss style tags are inserted after the styled-component style tag, which makes styles overriding each other in wrong order. I have no idea about where those jss style tags comes from and how to change the order. I found something in the doc of material-ui about css injection order but seems like it doesn't relate to this kind of situation. Any one help?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda