aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification
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/notification
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/notification')
-rw-r--r--src/components/notification/notification.vue29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index 2bbde108..f56aa977 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -14,14 +14,15 @@
{{ notification.from_profile.screen_name }}
</router-link>
</small>
- <a
- href="#"
- class="unmute"
+ <button
+ class="button-unstyled unmute"
@click.prevent="toggleMute"
- ><FAIcon
- class="fa-scale-110 fa-old-padding"
- icon="eye-slash"
- /></a>
+ >
+ <FAIcon
+ class="fa-scale-110 fa-old-padding"
+ icon="eye-slash"
+ />
+ </button>
</div>
<div
v-else
@@ -132,14 +133,16 @@
/>
</span>
</div>
- <a
+ <button
v-if="needMute"
- href="#"
+ class="button-unstyled"
@click.prevent="toggleMute"
- ><FAIcon
- class="fa-scale-110 fa-old-padding"
- icon="eye-slash"
- /></a>
+ >
+ <FAIcon
+ class="fa-scale-110 fa-old-padding"
+ icon="eye-slash"
+ />
+ </button>
</span>
<div
v-if="notification.type === 'follow' || notification.type === 'follow_request'"