Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with scoped styles in Vue #2468

Closed
fractalf opened this issue Aug 27, 2020 · 1 comment
Closed

Problems with scoped styles in Vue #2468

fractalf opened this issue Aug 27, 2020 · 1 comment

Comments

@fractalf
Copy link

Is there a problem with having scoped styles in Vue in Laravel?
This is such a core feature in Vue I can't understand why it's not working.

First when adding <style lang="scss" scoped> all the style was just ignored.
Then I tried this

   .sass('resources/sass/app.scss', 'public/css', {
      implementation: require('node-sass')
   })

and at least the style was working, but it's leaking to child components!

ref #2376 #1850 (comment)

@fractalf
Copy link
Author

fractalf commented Sep 9, 2020

As often shows this was just me not really understanding how this works.
Oh and https://vue-loader.vuejs.org/guide/scoped-css.html#child-component-root-elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant