Navigate to "subscriptions" on logo click (#1394)
* Updated logo to navigate to "subscriptions" on click * accessibility improvements * don't change backgroud color on hover
This commit is contained in:
parent
5e4b24f2bb
commit
6ebb000cb3
|
@ -277,7 +277,9 @@ export default Vue.extend({
|
|||
// Web placeholder
|
||||
}
|
||||
},
|
||||
|
||||
navigate: function (route) {
|
||||
this.$router.push('/' + route)
|
||||
},
|
||||
...mapActions([
|
||||
'showToast',
|
||||
'getYoutubeUrlInfo',
|
||||
|
|
|
@ -85,7 +85,13 @@
|
|||
display: flex
|
||||
align-items: center
|
||||
padding: 0px 25px 0px 10px
|
||||
cursor: pointer
|
||||
|
||||
&:active
|
||||
background-color: var(--tertiary-text-color)
|
||||
transition: background 0.2s ease-in
|
||||
@include top-nav-is-colored
|
||||
background-color: var(--primary-color-active)
|
||||
.logoIcon
|
||||
background-image: var(--logo-icon)
|
||||
background-repeat: no-repeat
|
||||
|
|
|
@ -44,7 +44,15 @@
|
|||
:title="newWindowText"
|
||||
@click="createNewWindow"
|
||||
/>
|
||||
<div class="logo">
|
||||
<div
|
||||
class="logo"
|
||||
role="link"
|
||||
tabindex="0"
|
||||
:title="$t('Subscriptions.Subscriptions')"
|
||||
@click="navigate('subscriptions')"
|
||||
@keydown.space.prevent="navigate('subscriptions')"
|
||||
@keydown.enter.prevent="navigate('subscriptions')"
|
||||
>
|
||||
<div
|
||||
class="logoIcon"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue