Skip to content

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

Open
@DouglasCalora

Description

@DouglasCalora

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions