From da8e876dd315f5ad006b3bdd205925b6d837caf5 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 9 Dec 2022 17:34:51 +0100 Subject: [PATCH] a11y(dossier.status): ajout de l'attribut role=alert aux status du dossier fix(a11y): role status et non alert --- app/helpers/dossier_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/dossier_helper.rb b/app/helpers/dossier_helper.rb index f4cdd9632..24caabe12 100644 --- a/app/helpers/dossier_helper.rb +++ b/app/helpers/dossier_helper.rb @@ -63,7 +63,7 @@ module DossierHelper def status_badge(state) status_text = dossier_display_state(state, lower: true) status_class = state.tr('_', '-') - tag.span(status_text, class: "label #{status_class} ") + tag.span(status_text, class: "label #{status_class} ", role: 'status') end def deletion_reason_badge(reason)