#31349: Change admin to use :nth-child() CSS selector for alternating rows
------------------------------------------------+------------------------
               Reporter:  Jon Dufresne          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.admin         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 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` and `row2`
 classes.
 - Offloads work to a native browser feature.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31349>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.34d88bed0e207b0a016b5affd828a9f5%40djangoproject.com.

Reply via email to