From 7e6030a4fc27ab0069903e76ffa395f3e157a870 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Jun 2026 14:45:13 +0200 Subject: [PATCH] fix(journey-item-row): add journey_remove_item_aria key and fix remove button label The remove button was using the confirmation-question text as its aria-label. Added a new dedicated journey_remove_item_aria key in all three locales so the button has a clear accessible name before the confirmation dialog opens. Co-Authored-By: Claude Sonnet 4.6 --- frontend/messages/de.json | 1 + frontend/messages/en.json | 1 + frontend/messages/es.json | 1 + frontend/src/lib/geschichte/JourneyItemRow.svelte | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 2767cc01..6aa43467 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -1188,6 +1188,7 @@ "journey_move_down": "'{title}' nach unten verschieben", "journey_note_error": "Notiz konnte nicht gespeichert werden", "journey_item_moved": "Eintrag {position} von {total} — nach Position {newPosition} verschoben", + "journey_remove_item_aria": "Eintrag entfernen", "journey_remove_confirm": "Wirklich entfernen?", "journey_remove_confirm_yes": "Bestätigen", "journey_remove_confirm_cancel": "Abbrechen", diff --git a/frontend/messages/en.json b/frontend/messages/en.json index f2e4af9e..6fc18602 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -1188,6 +1188,7 @@ "journey_move_down": "Move '{title}' down", "journey_note_error": "Could not save note", "journey_item_moved": "Entry {position} of {total} — moved to position {newPosition}", + "journey_remove_item_aria": "Remove item", "journey_remove_confirm": "Really remove?", "journey_remove_confirm_yes": "Confirm", "journey_remove_confirm_cancel": "Cancel", diff --git a/frontend/messages/es.json b/frontend/messages/es.json index af712f47..36d6865d 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -1188,6 +1188,7 @@ "journey_move_down": "Bajar '{title}'", "journey_note_error": "No se pudo guardar la nota", "journey_item_moved": "Entrada {position} de {total} — movida a la posición {newPosition}", + "journey_remove_item_aria": "Eliminar entrada", "journey_remove_confirm": "¿Realmente eliminar?", "journey_remove_confirm_yes": "Confirmar", "journey_remove_confirm_cancel": "Cancelar", diff --git a/frontend/src/lib/geschichte/JourneyItemRow.svelte b/frontend/src/lib/geschichte/JourneyItemRow.svelte index 0d872a72..f2b21bee 100644 --- a/frontend/src/lib/geschichte/JourneyItemRow.svelte +++ b/frontend/src/lib/geschichte/JourneyItemRow.svelte @@ -144,7 +144,7 @@ function handleRemoveClick() {