[Django] #36553: Improve the semantic structure of admin widgets.
9 views
Skip to first unread message
Django
unread,
Aug 14, 2025, 10:47:26 PMAug 14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36553: Improve the semantic structure of admin widgets.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Type:
| Cleanup/optimization
Status: new | Component:
| contrib.admin
Version: 5.2 | Severity: Normal
Keywords: accessibility | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Some of the widgets currently in the admin use `<p>` tags as their wrapper
elements.
The current structure uses `<p>` tags, and for fields that can span
multiple lines, such as `DateTime` and `URL` fields, `<br>` tags are used
to provide visual line breaks.
Since `<p>` tags represent paragraphs, they are not suitable as wrappers
for elements containing inputs, as is the case here. I believe this tag
should be changed to a `<div>`.
Additionally, `<br>` tags are used for visual line breaks, but it would be
more appropriate to remove them and implement the spacing using CSS.
--
Ticket URL: <https://code.djangoproject.com/ticket/36553>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Django
unread,
Aug 15, 2025, 3:30:47 AMAug 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36553: Improve the semantic structure of admin widgets.