.custom-highlight {
display: inline;
font-weight: 500;
font-size: 15px;
}
.item-list {
border: 1px solid #b1b8c9;
color: $color-grey-light;
font-size: 14px;
display: inline-block;
margin-right: 8px;
padding: 5px 20px;
border-radius: 4px;
background-color: #ffffff;
margin-top: 10px;
cursor: pointer;
&:hover {
background-color: $color-safron;
color: #ffffff;
}
}
<ul class="custom-highlight">
<li v-on:click="highlightItem" @click="selectItem('a')" :class="{ activeListItem }" class="item-list">a</li>
<li v-on:click="highlightItem" @click="selectItem('b')" :class="{ active: isActiveClass,}" class="item-list">b</li>
<li v-on:click="highlightItem" @click="selectItem('c')" :class="{ active: isActiveClass, }" class="item-list">c</li>
</ul>
I have 3 buttons, like a,b,c. So On clicking of every button i need to show the blue color highlighted and stay over there.
and when if user press different button, then color highlight need to move.