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.

Command icon 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

just_like_good_vibes created an issue. See original summary.

just_like_good_vibes’s picture

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.