Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/components/TableSkeleton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ describe("TableSkeleton", () => {
// One header row plus 3 body rows = 4 direct row containers.
expect(status?.children).toHaveLength(4);
});

it("applies reduced-motion classes for accessibility", () => {
render(<TableSkeleton />);
const status = screen.getByRole("status");
expect(status).toHaveClass("animate-pulse");
expect(status).toHaveClass("motion-reduce:animate-none");
});
});
2 changes: 1 addition & 1 deletion src/components/TableSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function TableSkeleton({
}) {
return (
<div
className="animate-pulse"
className="animate-pulse motion-reduce:animate-none"
role="status"
aria-label="Loading table data"
>
Expand Down
Loading