Problem/Motivation
Form errors are rendered as <div class="fr-error-group"><p class="fr-message--error"> . The fr-error-group class does not exist in the DSFR CSS, and fr-message--error without fr-message misses the message layout. DSFR 1.15.3 documents the expected markup in the input code doc: a fr-messages-group div, linked by aria-describedby, holding <p class="fr-message fr-message--error"> .
Proposed resolution
We could render <div class="fr-messages-group" aria-live="polite"> and <p class="fr-message fr-message--error"> in the input, textarea, select, fieldset and form-element templates. The id stays the same, so aria-describedby keeps working.
Issue fork ui_suite_dsfr-3626462
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
just_like_good_vibesComment #5
just_like_good_vibes