From d7cacde727bf7ef95015a2c902d9381ae11d2fb0 Mon Sep 17 00:00:00 2001 From: mfo Date: Tue, 9 Apr 2024 16:43:44 +0200 Subject: [PATCH] feat(champ.aria): do not use aria-invalid from time to time [standardization] Co-authored-by: Corinne Durrmeyer --- app/components/dsfr/input_errorable.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/components/dsfr/input_errorable.rb b/app/components/dsfr/input_errorable.rb index dc87561f3..be117383b 100644 --- a/app/components/dsfr/input_errorable.rb +++ b/app/components/dsfr/input_errorable.rb @@ -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