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

add css-module feature #345

Merged
merged 2 commits into from
May 31, 2021
Merged

Conversation

YutamaKotaro
Copy link
Contributor

For what ?

#268

description

I enabled to use cssModule in two way

  • $style
  • useCssModules

mount(Sass)
expect(document.getElementById('app').innerHTML).toEqual(
'<div><div class="a"></div><div class="b"></div><div class="c"></div><div class=""></div><div class="e"></div></div>'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some css properties are not moduled (For example d), so global class is not rendered.

<style module lang="sass">
@import "~__styles/sass-a"

.c
  background-color: red
</style>

<style lang="sass">
.d
  background-color: blue
</style>

<style lang="sass" module themed>
.e
  background-color: blue
</style>

@YutamaKotaro YutamaKotaro marked this pull request as ready for review May 27, 2021 15:14
Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, cool

@lmiller1990
Copy link
Member

Seems fine to me! I have not used CSS modules before, but since the tests are all ✅ that's great.

@lmiller1990
Copy link
Member

I can release this soon.

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

Successfully merging this pull request may close these issues.

None yet

2 participants