feat(champ.aria): do not use aria-invalid from time to time [standardization]

Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
This commit is contained in:
mfo 2024-04-09 16:43:44 +02:00
parent 4d90b1f662
commit d7cacde727
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -60,8 +60,7 @@ module Dsfr
def input_error_opts
{
aria: {
describedby: describedby_id,
invalid: errors_on_attribute?
describedby: describedby_id
}
}
end
@ -77,8 +76,7 @@ module Dsfr
if errors_on_attribute?
@opts.deep_merge!(aria: {
describedby: describedby_id,
invalid: errors_on_attribute?
describedby: describedby_id
})
end