Merge pull request #10315 from mfo/US/drop-usage-of-invalid-aria

ETQ usager : pas d'`aria-invalid`
This commit is contained in:
mfo 2024-04-12 11:55:58 +00:00 committed by GitHub
commit 3e89921683
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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