aboutsummaryrefslogtreecommitdiff
path: root/src/components/popover/popover.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/popover/popover.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/popover/popover.vue')
-rw-r--r--src/components/popover/popover.vue9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue
index 9b8680e5..020eab05 100644
--- a/src/components/popover/popover.vue
+++ b/src/components/popover/popover.vue
@@ -3,12 +3,13 @@
@mouseenter="onMouseenter"
@mouseleave="onMouseleave"
>
- <div
+ <button
ref="trigger"
+ class="button-unstyled -fullwidth popover-trigger-button"
@click="onClick"
>
<slot name="trigger" />
- </div>
+ </button>
<div
v-if="!hidden"
ref="content"
@@ -30,6 +31,10 @@
<style lang="scss">
@import '../../_variables.scss';
+.popover-trigger-button {
+ display: block;
+}
+
.popover {
z-index: 8;
position: absolute;