I think I tried almost everything trying to remove underline from router-link
.
This is my code:
<router-link :to="{name: 'Plan'}">
<div>Plan Your Trip</div>
<div class='expander'>
<router-link :to="{name: 'Plan'}">COVID-19</router-link>
<router-link :to="{name: 'Plan'}">Visa</router-link>
<router-link :to="{name: 'Plan'}">Essentials</router-link>
</div>
</router-link>
I'm trying to remove underline from sub-links only.
Things I've tried:
In-line style
<router-link style="text-decoration: none !important;" :to="{name: 'Plan'}">COVID-19</router-link>
Assign class
<router-link class="sub-link" :to="{name: 'Plan'}">COVID-19</router-link>
<style scoped>
.sub-link{text-decoration: none !important;}
</style>
Declare tag
<router-link tag="div" :to="{name: 'Plan'}">COVID-19</router-link>
<style scoped>
div{text-decoration: none !important;}
</style>
Assign seperate tag + Declare class for that tag
<router-link :to="{name: 'Plan'}">
<div class="sub-link">COVID-19</div>
</router-link>
These are just few lists, I literally tried every possible methods I can think of... Am I missing something about customizing Vue router-link
?