Opened 5 years ago
Closed 5 years ago
#31349 closed Cleanup/optimization (fixed)
Change admin to use :nth-child() CSS selector for alternating rows
Reported by: | Jon Dufresne | Owned by: | Jon Dufresne |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
- Reduces logic and markup in admin templates -- no
{% cycle "row1" "row2" %}
. - Reduces logic in JavaScript -- no need to adjust
row1
androw2
classes. - Offloads work to a native browser feature.
Change History (4)
comment:1 by , 5 years ago
Has patch: | set |
---|
comment:2 by , 5 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/12539