nl-design-system / nlds-gravity-forms

WordPress Gravity Forms theme for NL Design System styles. Authors of WordPress websites can now use their NL Design System theme in Gravity Forms. This repository is maintained by the NL Design System community.
European Union Public License 1.2
2 stars 0 forks source link

Add option to allow field errors above the field #27

Open paulAcato opened 5 months ago

paulAcato commented 5 months ago

Due to a11y the error messages must be shown above the field. Therefor we want to provide the editor with an option to set it above or below.

rianrietveld commented 5 months ago

I asked Gravity Forms the following:

Placement of the error message The NLDS has guidelines for forms (richtlijnen voor formulieren), based on WCAG 2.2 AA, but also on user research. While writing the NLDS guidelines I always kept in mind: can we do this with Gravity Forms. And everything is possible, out of the box, except for one setting: the error message should be above the input field. This is a pattern also used by the GOV.UK design system. https://design-system.service.gov.uk/components/error-message/ My question: I saw a new setting for the description placement, is it possible to also add a placement setting for the error message?