Issue #3083103: Programmatically associate error messages with inputs

MR based on MR-7080 for 3083103

Improvements to MR-7080:

  • passes error_id from preprocess to templates instead of hard-coding IDs in Twig
  • adds consistent form-item--error-message class across all error wrappers
  • standardizes error placement to after children
  • adds aria-describedby fallback for assistive technologies that don't support aria-errormessage
  • strips error aria attributes from composite child elements, and introduces #error_id property for flexible ID override
  • includes test coverage

Merge request reports

Loading