mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
fix: aria label for action buttons on Export table
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user