Skip to content

Conversation

FlorianPerucki
Copy link
Contributor

  1. Added a label for each state of the light/dark toggle button
  2. Translated these labels
  3. Introduced aria-hidden="true" on the related svg elements in order to always hide icons for screen reader users

Worked on this PR by pairing with @thibaudcolas

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

Copy link
Member

@thibaudcolas thibaudcolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 all working as expected (tested in Safari 15.6.1 macOS 12.5.1 w/ VoiceOver). Note for context @FlorianPerucki and I worked on this together in person.

This could perhaps be written a bit more concisely but if we did so I’d prefer to change the whole component – so not this time around.

cc @felixxm – good to go! 🚢

… in the admin.

Bug in bc7aa2a.

Thanks Thibaud Colas for the report and review.
@felixxm felixxm changed the title Fixed #34033 -- Admin light/dark theme conveys its state Fixed #34033 -- Improved accessibility of switch button for dark mode in the admin. Sep 24, 2022
@felixxm
Copy link
Member

felixxm commented Sep 24, 2022

@FlorianPerucki Thanks 👍 Welcome aboard ⛵

@thibaudcolas Thanks for the report and review ⭐

@felixxm
Copy link
Member

felixxm commented Sep 24, 2022

buildbot, test on selenium.

@felixxm
Copy link
Member

felixxm commented Sep 24, 2022

Merged in 2c7c22f.

@felixxm felixxm closed this Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants