I've experimented with various approaches in an attempt to remove the underline from router-link
.
This is the code I have:
<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 specifically trying to eliminate the underline from sub-links only.
Methods I've attempted:
Using inline style
<router-link style="text-decoration: none !important;" :to="{name: 'Plan'}">COVID-19</router-link>
Applying a class
<router-link class="sub-link" :to="{name: 'Plan'}">COVID-19</router-link>
<style scoped>
.sub-link{text-decoration: none !important;}
</style>
Defining a different tag
<router-link tag="div" :to="{name: 'Plan'}">COVID-19</router-link>
<style scoped>
div{text-decoration: none !important;}
</style>
Utilizing a separate tag + class declaration for that tag
<router-link :to="{name: 'Plan'}">
<div class="sub-link">COVID-19</div>
</router-link>
These are just a few attempts, I have exhaustively explored every conceivable method... Is there something crucial about customizing Vue router-link
that eludes me?