- The label isn’t translated
- The label doesn’t convey the button’s current state (light, dark, auto)
This is important for partly-sighted screen reader users, who will expect
the visual appearance of the button and its screen reader announcement to
both convey the current state. Particularly between the user’s "auto"
system theme and a forced theme.
--
Ticket URL: <https://code.djangoproject.com/ticket/34033>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => FlorianPerucki
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:1>
Old description:
> Follow-up to [https://github.com/django/django/pull/15843 PR #15843] /
> [https://code.djangoproject.com/ticket/33690 ticket #33690] – there are
> two issues with the theme switcher for screen reader users:
>
> - The label isn’t translated
> - The label doesn’t convey the button’s current state (light, dark, auto)
>
> This is important for partly-sighted screen reader users, who will expect
> the visual appearance of the button and its screen reader announcement to
> both convey the current state. Particularly between the user’s "auto"
> system theme and a forced theme.
New description:
Follow-up to [https://github.com/django/django/pull/15843 PR #15843] /
[https://code.djangoproject.com/ticket/33690 ticket #33690] – there are
two issues with the theme switcher for screen reader users:
- The label isn’t translated
- The label doesn’t convey the button’s current state (light, dark, auto)
- (potential issue – the SVG elements should be hidden from screen reader
users if they don’t have alternative text)
This is important for partly-sighted screen reader users, who will expect
the visual appearance of the button and its screen reader announcement to
both convey the current state. Particularly between the user’s "auto"
system theme and a forced theme.
Here is the current accessibility tree representation (Google Chrome) as a
reference:
{{{
button "Toggle Light / Dark / Auto color theme"
StaticText "Toggle Light / Dark / Auto color theme"
img ""
Ignored
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:3>
Comment (by Florian Perucki):
PR: https://github.com/django/django/pull/16085
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:4>
* cc: Sarah Abderemane (added)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. Bug in bc7aa2a5e91cf65fc7510edaf1776528c7ad07b4.
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"2c7c22f94dc51b8b48a1590ba6d6d4b28fdcab82" 2c7c22f9]:
{{{
#!CommitTicketReference repository=""
revision="2c7c22f94dc51b8b48a1590ba6d6d4b28fdcab82"
Fixed #34033 -- Improved accessibility of switch button for dark mode in
the admin.
Bug in bc7aa2a5e91cf65fc7510edaf1776528c7ad07b4.
Thanks Thibaud Colas for the report and review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34033#comment:7>