fix: aria label for action buttons on Export table

This commit is contained in:
Nuno Marques
2026-01-21 00:42:29 +00:00
parent c229c357ae
commit 412e21f810
13 changed files with 39 additions and 0 deletions

View File

@@ -67,6 +67,7 @@
<%= button_to family_export_path(export),
method: :delete,
class: "flex items-center gap-2 text-destructive hover:text-destructive-hover",
aria: { label: t("family_exports.table.row.actions.delete") },
data: {
turbo_confirm: t("family_exports.delete_confirmation"),
turbo_frame: "_top"
@@ -76,6 +77,7 @@
<%= link_to download_family_export_path(export),
class: "flex items-center gap-2 text-primary hover:text-primary-hover",
aria: { label: t("family_exports.table.row.actions.download") },
data: { turbo_frame: "_top" } do %>
<%= icon "download", class: "w-5 h-5" %>
<% end %>
@@ -89,6 +91,7 @@
<%= button_to family_export_path(export),
method: :delete,
class: "flex items-center gap-2 text-destructive hover:text-destructive-hover",
aria: { label: t("family_exports.table.row.actions.delete") },
data: {
turbo_confirm: t("family_exports.delete_failed_confirmation"),
turbo_frame: "_top"