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

Not importing <style></style> inside SFC file? #754

Open
3 tasks done
DouglasCalora opened this issue May 16, 2024 · 1 comment
Open
3 tasks done

Not importing <style></style> inside SFC file? #754

DouglasCalora opened this issue May 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DouglasCalora
Copy link

DouglasCalora commented May 16, 2024

Clear and concise description of the problem

I have components that has <style> inside, this scss styles are not being imported, and there are no mention about it in documentation.

An example of component:

<template>
  <div aria-live="polite" class="qas-status" :class="backgroundClass" role="status" />
</template>

<script setup>
import { computed } from 'vue'

defineOptions({
  name: 'QasStatus',
  inheritAttrs: false
})

const props = defineProps({
  color: {
    type: String,
    default: 'light-blue-2'
  }
})

const backgroundClass = computed(() => `bg-${props.color}`)
</script>

<style lang="scss">
.qas-status {
  background-color: red;
  border-radius: 100%;
  height: 16px;
  width: 16px;
}
</style>

The styles of class qas-status are not being applied.

Suggested solution

What to do?

Alternative

No response

Additional context

No response

Validations

@DouglasCalora DouglasCalora added the enhancement New feature or request label May 16, 2024
@NotGeekAtAll
Copy link

#794
I have same problem, no idea how to solve it.

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

No branches or pull requests

2 participants