️ feat(a11y): add keyboard accessibility to theme toggler

This commit is contained in:
welpo 2024-01-03 18:43:51 +01:00
parent b6a89e6370
commit dce495e71d
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 18 additions and 1 deletions

View file

@ -11,6 +11,7 @@
<div
title="{{ title_label }}"
class="theme-switcher"
tabindex="0"
role="button"
aria-label="{{ aria_label }}"
aria-pressed="false">
@ -21,6 +22,7 @@
<div
title="{{ reset_str }}"
class="theme-resetter"
tabindex="0"
role="button"
aria-hidden="true"
aria-label="{{ reset_str }}">