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

152
Visualizações
Remove stylesheet only inside react app window

Image will best describe this:

![enter image description here

code sandbox:https://codesandbox.io/s/annoying-stylesheet-2gpejc?file=/public/index.html

I'm writing React app inside non react app and their styles interfere with my React app styles.

How do I overwrite bootstrap-enterprise.css stylesheet only for the region of my React app without overriding the style rest for the rest of the page (The top app bar is theirs)

Edit:

.App {
  all: revert;
}

worked initially, but then I tried it my real usecase (overrding Mui Textfield styling component) and it didn't. i edited the codesandbox for the exact case.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Since your React app is separated from the rest of the app, you could use the all css property to reset all the styles inside your React app before to write yours :

/* Affect all the elements under .App */
.App * {
  all: unset
}

In your codesandbox, adding it at the top of your styles.css seems to work fine.

about 4 years ago · Juan Pablo Isaza Relatório
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