Skip to content
Snippets Groups Projects

Make post form attachments accessible

Merged Julia requested to merge fix/post-media-a11y into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • 0aec0bb4
    Fix to match upstream · 0aec0bb4
    Julia authored
    Upstreams linter was mad about the attributes not being before the event
    handlers, so this fixes that to match upstream when we end up merging
    2024.9 (assuming it gets included in that release)
@@ -9,11 +9,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #item="{element}">
<div
:class="$style.file"
role="button"
tabindex="0"
@click="showFileMenu(element, $event)"
@keydown.space.enter="showFileMenu(element, $event)"
@contextmenu.prevent="showFileMenu(element, $event)"
role="button"
tabindex="0"
>
<MkDriveFileThumbnail :data-id="element.id" :class="$style.thumbnail" :file="element" fit="cover"/>
<div v-if="element.isSensitive" :class="$style.sensitive">
Loading