#36437: Improve accessibility of messages in admin.
-------------------------------------+-------------------------------------
     Reporter:  Sarah Boyce          |                    Owner:  Michał
                                     |  Pokusa
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.messages     |                  Version:  5.2
     Severity:  Normal               |               Resolution:
     Keywords:  accessibility        |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Michał Pokusa):

 Replying to [comment:5 Antoliny]:
 > I remember seeing related work in this
 [https://code.djangoproject.com/ticket/36386 ticket]. I agree, it's
 something that needs improvement.

 Yes, this is the prerequisite for that PR, I understand that after this is
 resolved, it would be time to proceed with new styles.

 Below I attached screenshots of how messages look like after the changes.

 The contrast one was a bit more tricky, and I resolved it by making a
 sprite-like svg both both themes, similar to `icon-calendar.svg`. This
 approach required some modification of the message HTML. Of course the
 colors used can be changed, I just used ones that meet the AA guidelines.

 [[Image(test_messages--success--high_contrast.png)]]

 [[Image(test_messages--success--rtl.png)]]
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36437#comment:7>
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 visit 
https://groups.google.com/d/msgid/django-updates/010701973d24c347-be97b57d-48c5-467f-95e0-d0bd08e292f1-000000%40eu-central-1.amazonses.com.

Reply via email to