fix(Dashboard): add sr-only h1 to skeleton to satisfy axe page-has-heading-one
The axe-core accessibility scan runs against the page before the auth session resolves, showing DashboardSkeleton instead of real content. DashboardSkeleton had no h1, causing a false-positive 'page-has-heading-one' violation. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -173,6 +173,7 @@ function AuthenticatedDashboard({ userName }: { userName: string }) {
|
||||
function DashboardSkeleton() {
|
||||
return (
|
||||
<div className="animate-pulse">
|
||||
<h1 className="sr-only">Loading CartSnitch…</h1>
|
||||
<div className="h-8 w-40 rounded bg-gray-200" />
|
||||
<div className="mt-4 grid grid-cols-2 gap-3">
|
||||
<div className="h-24 rounded-xl bg-gray-200" />
|
||||
|
||||
Reference in New Issue
Block a user