#35706: Improve admin add/change form top level errors for screen readers
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Owner: Sanjeev
Type: | Holla S
Cleanup/optimization | Status: assigned
Component: contrib.admin | Version: dev
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: 1
-------------------------------------+-------------------------------------
Comment (by Sanjeev Holla S):
So for showing the list of errors in the summary box, I thought of using
`field.field.label` (To show which field it is) and `field.errors` to show
the errors of that field. Since field.errors includes HTML tags like <ul>,
directly displaying it might not look clean (in summary box). Therefore, I
thought of using `{{ field.errors|striptags }}` to remove the HTML tags
and present only the plain text error messages, ensuring the summary box
looks neat.
Is this fine?
--
Ticket URL: <https://code.djangoproject.com/ticket/35706#comment:14>
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/01070191b7458473-b4c09db9-71ba-4f55-8f8b-7f9dcfd094b1-000000%40eu-central-1.amazonses.com.