Currently grappling with understanding the intricacies of styling in web development (specifically VueJS). I am facing some challenges:
I am dynamically rendering colored dropdowns filled with dropdown items.
I am struggling to figure out how to change the background color of these dropdown items. The concept of styling is eluding me at the moment.
Would it make sense for me to inherit styles from the parent dropdown?
Here's the code snippet for the dropdown:
<b-dropdown variant="danger" size="sm" v-for="item in rubriquesFullyLoaded" :key="item.id" v-bind:text="item.libelle" id="ddown1" class="m-md-1" v-if="item.libelle == 'Services Magasins'">
<b-dropdown-item variant="danger" v-on:click="maj(enfant, 1)" v-for="enfant in item.childs" :key="enfant.id" v-bind:text="enfant.id" v-if="item.childs !== null">
{{ enfant.libelle }}
</b-dropdown-item>
</b-dropdown>
Thank you!