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.
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
[BUGFIX] Réordonnancement des
fieldset
legend
de Modulix (PIX-12382) #8835[BUGFIX] Réordonnancement des
fieldset
legend
de Modulix (PIX-12382) #8835Changes from all commits
f6ee965
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Je ne sais pas comment récupérer le formulaire pour vérifier la valeur de son
aria-describedby
avec testing library... Preneur de mieux !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.
Une PR est en cours sur le repo de testing-library sur le sujet.
A11yance/aria-query#547
C'est lié à ce bug-ci
testing-library/dom-testing-library#1293
D'ici là, la doc ne semble pas proposer d'alternatives qui puissent convenir.
Faute de mieux, ce que tu proposes me convient. Peut-être mettre un commentaire au-dessus de la ligne 31 avec le lien vers la PR de testing-library ?
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.
Pour info j'avais eu un process de pensée un peu différent. Sur MDN
form
n'a le rôleform
que si il est décrit par un nom accessible, j'imagine que la complexité d'implémentation côté testing-library vient de là.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.
@yannbertrand ils entendent quoi par un nom accessible ?
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.
J'ai pas lu mais la définition est linkée dans MDN, ça renvoie là : https://www.w3.org/TR/accname-1.1/#dfn-accessible-name
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.
merci, c'est très clair maintenant :) https://www.w3.org/TR/accname-1.1/#dfn-accessible-name:~:text=A%20simple%20use,or%20%22OK%20button%22.
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.
Encore plus clair après notre discussion (après avoir lu mdn).
Par défaut la balise
form
n'a pas le rôleform
. Le debugger d'accessibilité Firefox ne le constate pas, mais c'est bien visible sur Chrome qui annonce un role "Section".On peut la faire devenir un
form
soit :role="form"
. VoiceOver ne dira rien de plus.title="xxx"
, VoiceOver annonce "xxx, group".aria-label="xxx"
, VoiceOver annonce "xxx, group".aria-labelledby="xxx"
, VoiceOver annonce "xxx, group".Ces 4 méthodes permettent d'utiliser le
getByRole('form')
de testing-library.