Skip to content
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

fix: rgaa fix sur l'input contact page besoin plus info #6361

Conversation

Viczei
Copy link
Contributor

@Viczei Viczei commented Dec 12, 2024

No description provided.

@Viczei Viczei self-assigned this Dec 12, 2024
@Viczei Viczei linked an issue Dec 12, 2024 that may be closed by this pull request
@@ -72,6 +93,8 @@ export const BesoinPlusInformations = () => {
onSearchInput();
}
},
"aria-invalid": hasSearched && !result ? true : 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.

Il pourrait être intéressant de proposer à react dsfr d'intégrer ca nativement

@@ -33,12 +35,20 @@ export const BesoinPlusInformations = () => {
emitTrackNumber();
};

useEffect(() => {
if (hasSearched && !result) {
inputRef?.focus();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ca c'est pour focus l'input lorsqu'il y a une erreur

}, [hasSearched, result]);

useEffect(() => {
linkRef?.focus();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

celui ci pour focus le lien

@Viczei Viczei merged commit 9c0e5ac into dev Dec 19, 2024
22 of 23 checks passed
@Viczei Viczei deleted the 6295-modale-service-près-de-moi-formulaire-de-recherche-non-accessible branch December 19, 2024 15:46
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.

Modale "Service près de moi" - formulaire de recherche non accessible
5 participants