From 5fe14e4f9dc28e8e96abcfe8589017c8add855a8 Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Wed, 18 May 2022 15:05:57 +0100 Subject: [PATCH] Drop the aria-live attribute from text area It's no longer recommended by the design system as of v4.1.0 https://github.com/alphagov/govuk-frontend/releases/tag/v4.1.0 --- lib/govuk_design_system_formbuilder/elements/text_area.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/govuk_design_system_formbuilder/elements/text_area.rb b/lib/govuk_design_system_formbuilder/elements/text_area.rb index 5b9fe39d..03a1dce9 100644 --- a/lib/govuk_design_system_formbuilder/elements/text_area.rb +++ b/lib/govuk_design_system_formbuilder/elements/text_area.rb @@ -78,7 +78,7 @@ def limit_type def limit_description return unless limit? - tag.span(id: limit_id, class: limit_description_classes, aria: { live: 'polite' }) do + tag.span(id: limit_id, class: limit_description_classes) do "You can enter up to #{limit_quantity} #{limit_type}" end end