fix: react-doctor 71→73 (skeleton td aria-hidden, AdminToggle aria-label)
This commit is contained in:
@@ -100,23 +100,23 @@ function ContactSkeleton() {
|
||||
<>
|
||||
{[1, 2, 3, 4, 5].map((i) => (
|
||||
<tr key={i} className="border-b border-[var(--admin-border)]" aria-hidden="true">
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-24 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-24 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-32 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-32 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-20 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-20 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-16 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-16 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-16 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-16 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-12 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-12 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -130,23 +130,23 @@ function LogSkeleton() {
|
||||
<>
|
||||
{[1, 2, 3, 4, 5].map((i) => (
|
||||
<tr key={i} className="border-b border-[var(--admin-border)]" aria-hidden="true">
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-20 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-20 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-32 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-32 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-14 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-14 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-40 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-40 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-20 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-20 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-24 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-24 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -84,6 +84,7 @@ export function AdminToggleCompact({
|
||||
<button
|
||||
type="button"
|
||||
role="switch"
|
||||
aria-label={label ?? "Toggle"}
|
||||
aria-checked={checked}
|
||||
disabled={disabled}
|
||||
onClick={() => !disabled && onChange(!checked)}
|
||||
|
||||
Reference in New Issue
Block a user