I have the following form component:
<template>
<div>
<form>
<input placeholder="Recipe Name">
<textarea placeholder="Recipe Description..." rows="10"></textarea>
</form>
</div>
</template>
<script>
export default {
name: 'AddRecipeForm'
}
</script>
<style scoped>
form {
display: flex;
flex-direction: column;
}
</style>
The <style>
uses the scoped
attribute.
When applied, the CSS does not get loaded in. When scoped
is removed, it does get applied.
However I want to keep it local to the component.
Why is the CSS not getting applied when the scoped
attribute is present?