Complete keyboard navigation and focus style enhancement

This commit is contained in:
Bubka
2022-09-30 14:00:22 +02:00
parent 41387453d5
commit 1610cf3738
7 changed files with 26 additions and 27 deletions

View File

@ -5,7 +5,7 @@
<div class="tabs is-centered is-fullwidth">
<ul>
<li v-for="tab in tabs" :key="tab.view" :class="{ 'is-active': tab.view === activeTab }">
<a :id="tab.id" tabindex="0" @click="selectTab(tab.view)">{{ tab.name }}</a>
<router-link :id="tab.id" :to="{ name: tab.view }">{{ tab.name }}</router-link>
</li>
</ul>
</div>
@ -52,12 +52,6 @@
default: ''
},
},
methods: {
selectTab(viewName) {
this.$router.push({ name: viewName })
},
}
}
</script>