Skip to content

styles tag with modules or scoped attributes do not work #1

@faceyspacey

Description

@faceyspacey

Hey there, first off, this is excellent work. Combining React + Vue works pretty much perfectly. So this is just a minor issue.

Basically the following does not result in scoped styles:

<template>
  <div class="container">
      foo
  </div>
</template>

<style lang="stylus" scoped>
.container
  background green
  position absolute
  top 0px
  left 0px 
  width 100vw
  height 100vh
  z-index -1
  display flex
  align-items center
  justify-content center
  & span
    color rgba(255,255,255, .5)
    font-size 32px
</style>

No attribute is added to the top template element, and the resulting css class definition is scoped to the attribute id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions