-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Fixed #34643 -- Moved admin form label to a more accessible place. #19713
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
base: main
Are you sure you want to change the base?
Conversation
ebb0cfd
to
afe5bd6
Compare
4b7c2b6
to
029beaa
Compare
029beaa
to
69cf786
Compare
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.
- Note that when the PR is close to being merged, we should update the admin doc images
- Please make @hrushikeshrv a co-author of the commit
- On the previous PR I mentioned the Date/Time widget having the date and time label next to the input, this is the case in this PR (#16975 (comment)). However, I imagine when #19678 is merged, the layout would change (as currently Date/Time are in
<p>
tags rather than labels). We need to agree what is wanted and then make sure this stays consistent after changes in other PRs
@@ -4,7 +4,7 @@ | |||
|
|||
.form-row { | |||
overflow: hidden; | |||
padding: 10px; | |||
padding: 10px 0; |
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.
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.
That’s a good point. Thank you.
tests/admin_views/tests.py
Outdated
self.live_server_url + reverse("admin:admin_views_language_add") | ||
) | ||
save = self.selenium.find_element(By.CSS_SELECTOR, "div.submit-row input") | ||
save.click() |
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.
save.click() | |
with self.wait_page_loaded(): | |
save.click() |
Possibly
@@ -477,6 +477,15 @@ Miscellaneous | |||
* The :option:`collectstatic --clear` command now reports only a summary of | |||
deleted files when ``--verbosity`` is 1. To see the details for each file | |||
deleted, set the ``--verbosity`` flag to 2 or higher. | |||
* In order to improve accessibility of the admin change forms: |
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.
* In order to improve accessibility of the admin change forms: | |
* In order to improve accessibility of the admin change forms: |
Yes, I’m aware of this.
Yes, I’ll add it :)
Yes, is the layout you had in mind when you commented on the previous PR something like this? ![]() It’s likely that once #19678 is merged, the layout will change to the form shown above. Personally, I feel that for consistency, the date and time labels should be structured like the above. For reference, when adjusting the layout of the date and time fields, I will add a label tag and apply some minor styling. |
Co-authored-by: Hrushikesh Vaidya <hrushikeshrv@gmail.com>
@@ -1,4 +1,4 @@ | |||
<p class="datetime"> |
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.
Shouldn't we change this tag to a div
someday?
Trac ticket number
ticket-34643
Branch description
Continue PR...
Thank you for working on this for such a long time @hrushikeshrv ❤️
I have modified the internal structure of the admin form fields.(more accessible) 🙌🙌🙌
Checklist
main
branch.