Skip to content

fix: aria-live and aria-describedby on fieldset element. #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

m-maillot
Copy link
Contributor

No description provided.

@m-maillot m-maillot force-pushed the fix/accessibility-fieldset branch from 8fdc5da to 878247c Compare June 20, 2025 07:42
@@ -197,18 +197,11 @@ export const Fieldset = memo(
<div
className={fr.cx("fr-messages-group")}
id={messagesWrapperId}
aria-live="assertive"
aria-live={state === "error" ? "assertive" : undefined}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le aria-live assertive est à renseigner seulement si c'est une erreur.

return successDescId;
}
})()}
id={messageId}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai repris la même logique que sur le champ Input pour gérer la relation entre le message et la label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant