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

If using as a subcomponent, scoped styling does not work #31

Closed
cgs opened this issue May 17, 2017 · 2 comments
Closed

If using as a subcomponent, scoped styling does not work #31

cgs opened this issue May 17, 2017 · 2 comments

Comments

@cgs
Copy link

cgs commented May 17, 2017

I have a parent component which uses Paginate as a subcomponent:

<script>
  import Paginate from 'vuejs-paginate/dist'

  export default {
    components: {
      Paginate
    },
    ...
</script>

Also in parent component:

<style lang="scss" scoped>
.page-item.active a {
  color: red;
}
</style>

This does not work when attempting to style pagination. Removing "scoped" does however:

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

Looks like this is a Vue issue, but I hope this helps someone.

@lokyoung
Copy link
Owner

Hello @cgs . Seems Vue core team is going to working on this issues. So much thanks for this feedback.

@lokyoung
Copy link
Owner

@cgs Now vue-loader can solve this issue.
https://github.com/vuejs/vue-loader/releases/tag/v12.2.0

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

2 participants