️ 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
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 }}">