Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!