Skip to content

Commit

Permalink
feat(): Add skeleton accessibility attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Mar 27, 2024
1 parent 8df8d37 commit 9471fa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shadcn/ui/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ function Skeleton({
return (
<div
className={cn("animate-pulse rounded-md bg-primary/10", className)}
aria-busy="true"
role="progressbar"
aria-valuemin={0}
aria-valuemax={100}
aria-valuetext="Please wait..."
{...props}
/>
)
Expand Down

0 comments on commit 9471fa2

Please sign in to comment.