From 0fdac4aae9825c83b56fd0d942c84f25c4070bf9 Mon Sep 17 00:00:00 2001 From: fortezzalaboratory Date: Sun, 18 Oct 2026 16:27:48 +0300 Subject: [PATCH 1/4] feat(ui): replace skeleton pulse with transform-only sweep Resolves #875 --- packages/ui/src/components/skeleton.tsx | 11 ++++++----- packages/ui/src/styles/globals.css | 11 +++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/skeleton.tsx b/packages/ui/src/components/skeleton.tsx index df09e3b3..d3c84b40 100644 --- a/packages/ui/src/components/skeleton.tsx +++ b/packages/ui/src/components/skeleton.tsx @@ -4,10 +4,8 @@ import { cn } from "@workspace/ui/lib/utils" // --------------------------------------------------------------------------- // Base primitive // -// Uses `motion-safe:animate-pulse` so the animation only runs when the user -// has NOT requested reduced motion. A CSS-level safety net in globals.css -// provides belt-and-suspenders coverage for older browsers / non-Tailwind -// class consumers. +// The loading sheen is a transform-only sweep drawn on ::before, so it never +// triggers layout. globals.css disables it under reduced motion. // --------------------------------------------------------------------------- function Skeleton({ className, ...props }: React.ComponentProps<"div">) { @@ -15,7 +13,10 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {