0

I am trying to use my custom component (witch I shouldn't modify) to give the desired appearence to my router-link. It was the best way I found without need to modify my custom button and still preserve accessibility. As following another topics I've seem, it is semanticly incorrect, but what would be the disadvantage of this approach?

<router-link :to="{ name: 'my-route-name'}">
  <my-custom-button>
    Go!
  </my-custom-button>
</router-link>
mplungjan
  • 169,008
  • 28
  • 173
  • 236
Rafael Affonso
  • 181
  • 3
  • 6

0 Answers0