From b60c2ca5d3d25e26f18e0948283182742118b35f Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Thu, 2 Jun 2022 13:38:40 +0200 Subject: [PATCH] Update aria-invalid based on valid length --- .../src/views/propertyeditors/textarea/textarea.html | 3 ++- .../src/views/propertyeditors/textbox/textbox.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html index 2f183c29f0..b4c96e9292 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html @@ -9,7 +9,8 @@ ng-keyup="change()" ng-trim="false" ng-required="model.validation.mandatory" - aria-required="{{model.validation.mandatory}}"> + aria-required="{{model.validation.mandatory}}" + aria-invalid="{{validLength ? false : true}}"> diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.html index 1f1131c43f..a0d08d20ed 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textbox/textbox.html @@ -8,7 +8,7 @@ val-server="value" ng-required="model.validation.mandatory" aria-required="{{model.validation.mandatory}}" - aria-invalid="False" + aria-invalid="{{validLength ? false : true}}" ng-trim="false" ng-change="change()" />