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:
parent
4d90b1f662
commit
d7cacde727
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue