Trying to understand how style works in web dev (VueJS) and I'm struggling with some things :
I'm displaying (dynamicly) some dropdown (colored) filled with dropdown-item.
I would like to change the backcolor of those dropdown-item. Can't really understand how style works.
My (logical) idea would be to inherit from the parent-dropdown ?
Code of 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>
Thanks !
.dropdown-item { background-color: rebeccapurple; }