Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85807374
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue
index af2a4450f2..b5c2bd67ed 100644
--- a/src/components/popover/popover.vue
+++ b/src/components/popover/popover.vue
@@ -30,7 +30,7 @@
ref="content"
:style="styles"
class="popover"
- role="dialog"
+ :role="tooltip ? 'tooltip' : 'dialog'"
:aria-label="$attrs['aria-label']"
:class="popoverClass || 'popover-default'"
@mouseenter="onMouseenterContent"
diff --git a/src/components/tooltip/tooltip.vue b/src/components/tooltip/tooltip.vue
index 8558c45695..c8ab2382c0 100644
--- a/src/components/tooltip/tooltip.vue
+++ b/src/components/tooltip/tooltip.vue
@@ -2,7 +2,8 @@
<Popover
trigger="hover"
tooltip
- :label="label ?? $t('general.help')"
+ :label="label"
+ :aria-describedby="idPrefix + 'content'"
v-bind="$attrs"
>
<template #trigger>
@@ -23,7 +24,7 @@ import Popover from 'src/components/popover/popover.vue'
const props = defineProps({ text: String, label: String })
const uniqueId = useId()
-const idPrefix = computed(() => `tooltip-${uniqueId.value}`)
+const idPrefix = computed(() => `tooltip-${uniqueId}`)
</script>
<style lang="scss">
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Oct 14, 10:30 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1787097
Default Alt Text
(1 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment