Repository navigation
Conversation
Quand state vaut "default", aria-describedby pointait vers l'id du message d'état, qui n'est rendu que pour error et success. L'id n'est plus ajouté que si le message existe, comme pour Select (codegouvfr#402, codegouvfr#404). Ajout d'un test qui échoue avant la correction.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quand
statevaut"default"(cas par défaut), le champ fichier aaria-describedby="…-input-desc-error", alors que l'élément portant cet id n'est rendu que pour les étatserroretsuccess. La référence pointe donc vers un élément absent (relevé par axe-core sur toutes les stories Upload par défaut).Même correction que celle faite pour Select dans #402 / #404 : l'id du message n'est ajouté à
aria-describedbyque si le message est rendu, et l'attribut est omis s'il est vide. Unaria-describedbypassé vianativeInputPropsreste conservé.Ajout d'un test (
test/runtime/lib/Upload.test.ts) qui échoue avant la correction et passe après.