vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.88k stars 1.16k forks source link

Overriding Vue router active class #2302

Open ph-git opened 3 years ago

ph-git commented 3 years ago

Hello, I found this issue https://github.com/vuematerial/vue-material/issues/653#issuecomment-650898232 which was never answered, and I am facing the same problem.

If someone could provide a complete example using a component (so props and classes), that would be very helpful.

HanniBal27-2001 commented 2 years ago

No solution for the "active class thing" but a workaround for the problem:

The Router link will generate an <a> tag. By editing the CSS you can change the way the link is displayed. e.g. <style scoped> a { text-decoration: none; color: black; } </style> will remove the underline and make text color black.