a11y(dossier.status): ajout de l'attribut role=alert aux status du dossier

fix(a11y): role status et non alert
This commit is contained in:
Martin 2022-12-09 17:34:51 +01:00 committed by mfo
parent 99a652c297
commit da8e876dd3

View file

@ -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)