mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 20:29:08 +01:00
fix(a11y): disabled nav side links (#529)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
732011b520
commit
347cfff358
1 changed files with 9 additions and 1 deletions
|
@ -44,7 +44,15 @@ const noUserVisual = computed(() => isMastoInitialised.value && props.userOnly &
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink :to="to" :disabled="noUserDisable" :class="noUserVisual ? 'op25 pointer-events-none ' : ''" :active-class="activeClass" group focus:outline-none @click="$scrollToTop">
|
<NuxtLink
|
||||||
|
:to="to"
|
||||||
|
:disabled="noUserDisable"
|
||||||
|
:class="noUserVisual ? 'op25 pointer-events-none ' : ''"
|
||||||
|
:active-class="activeClass"
|
||||||
|
group focus:outline-none disabled:pointer-events-none
|
||||||
|
:tabindex="noUserDisable ? -1 : null"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
<CommonTooltip :disabled="!isMediumScreen" :content="text" placement="right">
|
<CommonTooltip :disabled="!isMediumScreen" :content="text" placement="right">
|
||||||
<div
|
<div
|
||||||
flex items-center gap4
|
flex items-center gap4
|
||||||
|
|
Loading…
Reference in a new issue