feat(champ.errors): add aria-labelledby error on champs wrapped within a fieldset, make error messages always present and aria-live: assertive on validation error

Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
mfo 2024-04-09 16:19:54 +02:00
parent 331dfd3044
commit 8453e121d7
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
6 changed files with 14 additions and 11 deletions

View file

@ -188,7 +188,7 @@ class Champ < ApplicationRecord
end
def describedby_id
"#{html_id}-description" if description.present?
"#{html_id}-describedby_id"
end
def log_fetch_external_data_exception(exception)