Merge pull request #8266 from mfo/a11y/use-alert-for-badges

a11y(dossier.status): ajout de l'attribut role=alert aux status du dossier
This commit is contained in:
mfo 2022-12-26 17:54:21 +01:00 committed by GitHub
commit a6c15975b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)