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

91
Visualizações
Properly Scoping Material Design or Bootstrap styles in Vue Components

I've now dealt with this on multiple projects where when using a componentized framework like Vue that promotes scoped styles, you cannot change the styles of child components in the MD or Bootstrap Vue libraries (I'm assuming this would apply to other component frameworks?).

This applies if you are using the scoped property:

<style lang="scss" scoped></style>

In order to scope the styles we always have to wrap all of the styles in a parent id or class so that the styles don't accidently apply globally.

<style lang="scss">
#uniqueId {
  .my-class {
    background-color: red;
  }
}
</style>

Is there a way around this? I'd like to use the scoped attribute on the style tag to ensure that no styles leak to the rest of the application.

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