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

css in jsx not scoped #186

Open
mustapha-wang opened this issue Mar 13, 2024 · 0 comments
Open

css in jsx not scoped #186

mustapha-wang opened this issue Mar 13, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed Unconfirmed issue

Comments

@mustapha-wang
Copy link

mustapha-wang commented Mar 13, 2024

if use jsx,the scoped css not applied.

<script setup lang="jsx">
  console.log('sfc setup');
  const My=function(){return(
    <>
      <span class='red'>red</span>
      <h1>china,shanghai</h1>
    </>
  )}
</script>

<template>
  <My />
</template>

<style scoped>
  h1{
    font-size: large;
    color:red;
  }
  .red{
    color:red;
  }
</style>
`
@mustapha-wang mustapha-wang added bug Something isn't working unconfirmed Unconfirmed issue labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Unconfirmed issue
Projects
None yet
Development

No branches or pull requests

1 participant