fix: react-doctor control-has-associated-label 48→19 (toggles, empty th, action menus)

This commit is contained in:
Nora
2026-06-26 04:53:05 -06:00
parent cad6d64eee
commit df7b65531a
19 changed files with 30 additions and 25 deletions
+2 -2
View File
@@ -385,7 +385,7 @@ export default function UsersPage({ initialUsers, brands, currentUser, onUserCre
<th className="px-5 py-4 font-semibold">Brand</th>
<th className="px-5 py-4 font-semibold">Status</th>
<th className="px-5 py-4 font-semibold">Created</th>
{canManageUsers && <th className="px-5 py-4 font-semibold" />}
{canManageUsers && <th className="px-5 py-4 font-semibold" aria-label="Actions" />}
</tr>
</thead>
<tbody className="divide-y divide-stone-100">
@@ -651,7 +651,7 @@ export default function UsersPage({ initialUsers, brands, currentUser, onUserCre
<p className="font-medium text-stone-900">Active</p>
<p className="text-xs text-stone-500">Deactivated users cannot log in</p>
</div>
<button type="button"
<button type="button" aria-label="Toggle user active status" aria-pressed={editing.active}
onClick={() => setActive(!editing.active)}
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${editing.active ? "bg-emerald-600" : "bg-stone-300"}`}
>