-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
Fixed #32819 -- Added aria-describedby for help_text. #16185
Conversation
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.
Hello! Thank you for your contribution 💪
As it's your first contribution be sure to check out the patch review checklist.
If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!
If you have any design or process questions then you can ask in the Django forum.
Welcome aboard ⛵️!
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.
Thank you soo much for picking this up. 🙏
I've left an initial set of comments against the proposed patch.
I think there's still some questions about how this should be implemented from the previous pr that needs to be addressed.
Have you any particular thoughts on these? (I'm not sure what to recommend here)
Thanks again. 👍
Thanks for the updates. Could you have a look at the test failure(s)? It seems that atleast the Did you manage to get the test suite running locally yet? |
I'm not sure what to suggest here either unfortunately. @carltongibson could you provide some guidance here please? |
I can try to look at the test failures. I'm not too familiar with the test suite so I was looking at https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ . I'm a little lost on how to get the test suite running locally. EDIT: I managed to get the test suite running and I'm looking into why the |
I ran |
Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
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.
A few more comments. Sorry I don't have time this week to sit down with it for a full review.
We still need to address the comments from the accessibility team on the previous PR.
docs/ref/forms/fields.txt
Outdated
<span class="helptext" id="id_username_helptext">e.g., user@example.com</span></p> | ||
|
||
``aria-describedby`` can be customized by adding it to the ``attrs`` of | ||
the field's widget. In this scenario you'll need to also customize the form |
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.
This doesn't look quite right any more. I think the patch now adds both the default and the custom attribute?
Hey @thibaudcolas @smithdc1 — I don't suppose I can ask you to comment on #15246 (comment) can I please? @thibaudcolas began:
I'm not clear what the conclusion was. 🤔 Do we have a way forward? Is it a blocker? Is there a test case/example we need to make pass? Any other thoughts? Thanks! 🙏 |
I'll try and summarise the current status and help give some next steps and some concrete decisions which need to be made. However, I'm unable to give an expert recomendation on a way forward.
So in terms of next steps, maybe:
|
Hi @smithdc1 — thank you for the summary. Very helpful! 🎁 So initial take on your thoughts:
@thibaudcolas it would be good if you could input too, to see if we have a way forward here? Thanks! 🙏 |
On principle it sounds good to me to give priority to |
Superseded by #16920. |
This PR continues the discussion here by incorporating the suggested code change.
Release notes & version changed annotations were updated as well.
ticket-32819