#35140: Increase font size in Django debug views (404, 500, etc)
-------------------------------------+-------------------------------------
Reporter: Eliana Rosselli | Owner: Eliana
| Rosselli
Type: Bug | Status: assigned
Component: Uncategorized | Version: 5.0
Severity: Normal | Resolution:
Keywords: accessibility font | Triage Stage: Accepted
size |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Thibaud Colas):
hi Natalia, sure! We reviewed the error pages and noticed the font size
used there was smaller than recommended minimums on the web. There isn’t a
hard and fast rule with what’s considered the bare minimum font size or
how to set a type scale, but general best practice is that the main "body"
copy of a page should be 16px. As you’ve noted some organizations are also
using 14px, which I think would make for a good minimum for Django – but
if we used that for the main copy, then it wouldn’t leave much room for
any other text to be smaller. So this is possible but would somewhat limit
design options.
I don’t know which debug page you’re referring to, the 404 page shared by
Eli uses 13px for the main text in my browser. For the [https://static-
django-demo.netlify.app/django_admin_tests/v5.1/english/defaults/500/ 500
page], my browser’s CSS overview says:
- 368 occurrences of 13px
- 14 occurrences of 15.21px
- 8 occurrences of 11px
- 7 occurrences of 19.5px
- 3 occurrences of 13.65px
- 2 occurrences of 26px
I don’t see any use of a 14px font size but it could be our browsers are
configured differently.
> I wouldn't want the 404 (or 500) pages to have bigger size because then
users will have to scroll more, and also increasing the font size is a
shortcut away (ctrl +) or a setting away ("minimum font size" in Firefox
for example).
Generally with web accessibility the idea is that the default experience
should be accessible to the widest audience. So it’d be better to provide
a legible font size by default, and as you mention if some people find it
too big or on the contrary not big enough they can still adjust.
Scrolling is certainly a consideration but it doesn’t seem like font size
would change things much on those pages?
- On the 404 and CSRF failure pages, the content has a small height as-is
and I don’t see how an increase in font size would cause scrolling
- On the 500 and 400 pages, making the Settings or Request information
"META" sections would help a lot more than keeping font size small
--
Ticket URL: <https://code.djangoproject.com/ticket/35140#comment:3>
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/0107018d4175f49a-e8cdeac5-ab68-4cb1-99bc-3253f4b8d9a2-000000%40eu-central-1.amazonses.com.