-
Notifications
You must be signed in to change notification settings - Fork 22
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
The head ref may contain hidden characters: "6295-modale-service-pr\u00E8s-de-moi-formulaire-de-recherche-non-accessible"
fix: rgaa fix sur l'input contact page besoin plus info #6361
Conversation
@@ -72,6 +93,8 @@ export const BesoinPlusInformations = () => { | |||
onSearchInput(); | |||
} | |||
}, | |||
"aria-invalid": hasSearched && !result ? true : undefined, |
There was a problem hiding this comment.
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
packages/code-du-travail-frontend/cypress/integration/light/outils/brut-net.spec.ts
Outdated
Show resolved
Hide resolved
@@ -33,12 +35,20 @@ export const BesoinPlusInformations = () => { | |||
emitTrackNumber(); | |||
}; | |||
|
|||
useEffect(() => { | |||
if (hasSearched && !result) { | |||
inputRef?.focus(); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
packages/code-du-travail-frontend/src/modules/besoin-plus-informations/index.tsx
Outdated
Show resolved
Hide resolved
packages/code-du-travail-frontend/cypress/integration/light/outils/brut-net.spec.ts
Outdated
Show resolved
Hide resolved
…-recherche-non-accessible
🎉 Deployment for commit aa993e7 : IngressesDocker images
|
No description provided.