fix: 🐛 move tabindex=0 to <label>

Signed-off-by: WaitSpring <me@waitspring.com>
这个提交包含在:
WaitSpring 2023-07-26 11:19:22 +08:00
父节点 50fa17dd38
当前提交 8b3bf10346
共有 4 个文件被更改,包括 6 次插入6 次删除

查看文件

@ -9,8 +9,7 @@
class="mw-checkbox-hack-checkbox"
role="button"
aria-labelledby="citizen-drawer__buttonCheckbox"
aria-haspopup="true"
tabindex="0">
aria-haspopup="true">
{{! ID needed for a11y and checkbox hack }}
<aside id="citizen-drawer__card" class="citizen-drawer__card mw-checkbox-hack-target">
<header class="citizen-drawer__header">

查看文件

@ -12,7 +12,8 @@
class="mw-checkbox-hack-button citizen-header__buttonCheckbox"
for="citizen-drawer__checkbox"
title="{{msg-citizen-drawer-toggle}}"
aria-hidden="true">
aria-hidden="true"
tabindex="0">
<span>{{msg-citizen-drawer-toggle}}</span>
</label>
</div>

查看文件

@ -13,8 +13,7 @@
class="mw-checkbox-hack-checkbox"
role="button"
aria-labelledby="citizen-search__buttonCheckbox"
aria-haspopup="true"
tabindex="0">
aria-haspopup="true">
<div role="search" class="citizen-search-box citizen-search__card mw-checkbox-hack-target">
<span class="citizen-search__icon citizen-ui-icon mw-ui-icon-wikimedia-search"></span>
<form action="{{form-action}}" id="searchform" autocomplete="off">

查看文件

@ -13,7 +13,8 @@
class="mw-checkbox-hack-button citizen-header__buttonCheckbox"
for="citizen-search__checkbox"
title="{{msg-citizen-search-toggle}} {{msg-citizen-search-toggle-shortcut}}"
aria-hidden="true">
aria-hidden="true"
tabindex="0">
<span>{{msg-citizen-search-toggle}}</span>
</label>
</div>