aboutsummaryrefslogtreecommitdiff
path: root/src/components/desktop_nav/desktop_nav.vue
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-12-01 11:02:46 +0000
committerShpuld Shpludson <shp@cock.li>2020-12-01 11:02:46 +0000
commitfdfb8810c1d8ab64969c38aa1a6bce1daf013249 (patch)
tree14efedfdbbfca297da51819235c71ca685cc9902 /src/components/desktop_nav/desktop_nav.vue
parentc655699935ce6fd8b5d0a744dafd6403e32277b7 (diff)
parent655d985a82d194cd38c5ec75f1b0153804965d5f (diff)
Merge branch 'fix/use-semantically-correct-buttons' into 'develop'
Fix #1001 Accessibility: Use semantically correct buttons (almost) everywhere Closes #1001 See merge request pleroma/pleroma-fe!1293
Diffstat (limited to 'src/components/desktop_nav/desktop_nav.vue')
-rw-r--r--src/components/desktop_nav/desktop_nav.vue40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue
index 3a6e4033..762aa610 100644
--- a/src/components/desktop_nav/desktop_nav.vue
+++ b/src/components/desktop_nav/desktop_nav.vue
@@ -36,9 +36,8 @@
@toggled="onSearchBarToggled"
@click.stop.native
/>
- <a
- href="#"
- class="nav-icon"
+ <button
+ class="button-unstyled nav-icon"
@click.stop="openSettingsModal"
>
<FAIcon
@@ -47,29 +46,32 @@
icon="cog"
:title="$t('nav.preferences')"
/>
- </a>
+ </button>
<a
v-if="currentUser && currentUser.role === 'admin'"
href="/pleroma/admin/#/login-pleroma"
class="nav-icon"
target="_blank"
- ><FAIcon
- fixed-width
- class="fa-scale-110 fa-old-padding"
- icon="tachometer-alt"
- :title="$t('nav.administration')"
- /></a>
- <a
+ >
+ <FAIcon
+ fixed-width
+ class="fa-scale-110 fa-old-padding"
+ icon="tachometer-alt"
+ :title="$t('nav.administration')"
+ />
+ </a>
+ <button
v-if="currentUser"
- href="#"
- class="nav-icon"
+ class="button-unstyled nav-icon"
@click.prevent="logout"
- ><FAIcon
- fixed-width
- class="fa-scale-110 fa-old-padding"
- icon="sign-out-alt"
- :title="$t('login.logout')"
- /></a>
+ >
+ <FAIcon
+ fixed-width
+ class="fa-scale-110 fa-old-padding"
+ icon="sign-out-alt"
+ :title="$t('login.logout')"
+ />
+ </button>
</div>
</div>
</nav>