question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue Router support for v-toolbar-title

See original GitHub issue

The majority of websites allow the user to click on the website title / logo to navigate to the homepage. I tried to implement this with Vuetify but <v-toolbar-title> doesn’t seem to support the Vue Router attribute to="<path>" as other components do. I’ve noticed that the Vuetify website also implements this behavior, however, its only possible to click the logo.

An example Codepen of this I’ve tried nesting another component in v-toolbar-title which can hold a to attribute but that causes the title to loose its CSS properties.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

15reactions
drew-roystercommented, Oct 12, 2018

Johns solution is awesome just add toolbar-title as the class for the router-link and the following css

.toolbar-title {
  color: inherit;
  text-decoration: inherit;
}
4reactions
tobias74commented, Apr 3, 2020

as it seems the classname has changed to

.v-toolbar__title {
   color: black;
   text-decoration: none;
 }

I do have to apply the color and the text-decoration explicitly though. ‘Inherit’ will keep the blueish-link-color of the router-link

Maybe this could be more elegantly solved within the framework by offering a “:to” on the v-toolbar-title as suggested by the original poster?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run Vuetify.js toolbar title with router - Stack Overflow
Here is how I solved it. I followed a mix of vuetify and vue-router official documentation. <v-toolbar-title style="cursor: pointer"> ...
Read more >
Vue Router: Home
The official router for Vue.js.
Read more >
Rolling your own management application with Vue, Vue ...
In this tutorial, we will work with Vue, Vue Router, Vuetify, and node-fetch to build the front end of an inventory management application....
Read more >
How to build an SPA using Vue.js, Vuex, Vuetify, and Firebase
How to build an SPA using Vue.js, Vuex, Vuetify, and Firebase: using Vue Router. Part 2: learn how to use Vue Router with...
Read more >
Get started with Vuetify 3
Get started with Vuetify, the world's most popular Vue.js framework for building ... For more information regarding supported package managers, please visit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found