NuxtN
Nuxt12mo ago
JuanMCe

external library overriding component scoped classes in style

I have a modal component with scoped style like this
<style lang="scss" scoped>
  .modal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-y: auto;

    .modal-container {
      position: relative;
      max-width: 634px;
...


I was asked to integrate a library (via html script) that has an internal modal.
That library for some reason clashes with my component classes (modal-wrapper and modal-container)

The computed styles are both the library and component mixed together (like it's treating the component styles as global)
Was this page helpful?