@@ -88,15 +107,21 @@ const ClientSideNav = () => {
{({ onOpen }) => {
return (
<>
-
-
+
+
{!desktopScreen && (
)}
>
@@ -109,7 +134,7 @@ const ClientSideNav = () => {
aria-label={themeIconAriaLabel}
variant="ghost"
isSecondary
- className="group px-2 max-md:hidden xl:px-3 [&>svg]:transition-transform [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover"
+ className="group animate-fade-in px-2 max-md:hidden xl:px-3 [&>svg]:transition-transform [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover"
onClick={toggleColorMode}
>
@@ -122,7 +147,7 @@ const ClientSideNav = () => {
name={DESKTOP_LANGUAGE_BUTTON_NAME}
ref={languagePickerRef}
variant="ghost"
- className="gap-0 px-2 text-body transition-transform duration-500 active:bg-primary-low-contrast active:text-primary-hover data-[state='open']:bg-primary-low-contrast data-[state='open']:text-primary-hover max-md:hidden xl:px-3 [&_svg]:transition-transform [&_svg]:duration-500 [&_svg]:hover:rotate-12"
+ className="animate-fade-in gap-0 px-2 text-body transition-transform duration-500 active:bg-primary-low-contrast active:text-primary-hover data-[state='open']:bg-primary-low-contrast data-[state='open']:text-primary-hover max-md:hidden xl:px-3 [&_svg]:transition-transform [&_svg]:duration-500 [&_svg]:hover:rotate-12"
>
{t("languages")}
From 9e96afb4ae71a936a629d0679bae7b9fcf7cb4a2 Mon Sep 17 00:00:00 2001
From: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu, 19 Jun 2025 10:23:46 -0700
Subject: [PATCH 13/15] patch: opacity
---
src/components/ui/skeleton.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx
index 465b1fe1fea..f82d0e8e361 100644
--- a/src/components/ui/skeleton.tsx
+++ b/src/components/ui/skeleton.tsx
@@ -30,7 +30,7 @@ const skeletonVariants = cva(
variants: {
variant: {
pulse: "animate-pulse-light",
- "slow-pulse": "animate-slow-pulse opacity-[0.01]",
+ "slow-pulse": "animate-slow-pulse dark:opacity-0 opacity-0",
},
},
defaultVariants: {
From 8c084a316d52f9e36fe5490709417822f7228620 Mon Sep 17 00:00:00 2001
From: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat, 21 Jun 2025 08:49:01 -0700
Subject: [PATCH 14/15] revert: slow-pulse
---
src/components/Nav/Client/index.tsx | 28 ++++++---------------------
src/components/ui/skeleton.tsx | 30 +++++++++--------------------
tailwind.config.ts | 5 -----
3 files changed, 15 insertions(+), 48 deletions(-)
diff --git a/src/components/Nav/Client/index.tsx b/src/components/Nav/Client/index.tsx
index 7ebd46e9b83..dbcfc54ba22 100644
--- a/src/components/Nav/Client/index.tsx
+++ b/src/components/Nav/Client/index.tsx
@@ -23,18 +23,14 @@ const Menu = dynamic(() => import("../Menu"), {
loading: () => (
{Array.from({ length: 5 }).map((_, i) => (
-
+
))}
),
})
const MobileMenuLoading = () => (
-
+
)
const MobileNavMenu = dynamic(() => import("../Mobile"), {
@@ -48,22 +44,13 @@ const SearchProvider = dynamic(() => import("../../Search"), {
<>
-
+
-
+
>
@@ -74,10 +61,7 @@ const LanguagePicker = dynamic(() => import("../../LanguagePicker"), {
ssr: false,
loading: () => (
// LG skeleton width approximates English "[icon] Languages EN" text width
-
+
),
})
@@ -97,7 +81,7 @@ const ClientSideNav = () => {
<>
{desktopScreen && (
)}
diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx
index f82d0e8e361..7e4415fe3d8 100644
--- a/src/components/ui/skeleton.tsx
+++ b/src/components/ui/skeleton.tsx
@@ -1,5 +1,3 @@
-import { cva, type VariantProps } from "class-variance-authority"
-
import { cn } from "@/lib/utils/cn"
import { Card, CardBanner, CardContent } from "../ui/card"
@@ -24,27 +22,17 @@ const widths = [
"w-1/5",
]
-const skeletonVariants = cva(
- "h-4 rounded bg-disabled opacity-5 dark:opacity-60",
- {
- variants: {
- variant: {
- pulse: "animate-pulse-light",
- "slow-pulse": "animate-slow-pulse dark:opacity-0 opacity-0",
- },
- },
- defaultVariants: {
- variant: "pulse",
- },
- }
-)
-
-type SkeletonProps = React.HTMLAttributes
&
- VariantProps
+type SkeletonProps = React.HTMLAttributes
-const Skeleton = ({ className, variant, ...props }: SkeletonProps) => {
+const Skeleton = ({ className, ...props }: SkeletonProps) => {
return (
-
+
)
}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 4133d3ab750..a567e740b8d 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -301,10 +301,6 @@ const config = {
"pulse-light": {
"50%": { opacity: "0.2" },
},
- "slow-pulse": {
- "70%": { opacity: "0" },
- "85%": { opacity: "0.2" },
- },
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
@@ -324,7 +320,6 @@ const config = {
"spin-9": "spin 18s linear infinite",
"counter-spin-9": "spin 18s linear infinite reverse",
"pulse-light": "pulse-light 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
- "slow-pulse": "slow-pulse 4s linear infinite",
"fade-in": "fade-in 150ms ease-in-out",
},
// Add custom border-radius tailwinds extension for "4xl" as "2rem"
From 7ab53983560a933059a1600ba0e6c21e92ee2b3a Mon Sep 17 00:00:00 2001
From: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon, 23 Jun 2025 15:59:53 -0700
Subject: [PATCH 15/15] fix: fade-in animation class name
---
src/components/Nav/Client/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/Nav/Client/index.tsx b/src/components/Nav/Client/index.tsx
index dbcfc54ba22..9a6934b2220 100644
--- a/src/components/Nav/Client/index.tsx
+++ b/src/components/Nav/Client/index.tsx
@@ -81,7 +81,7 @@ const ClientSideNav = () => {
<>
{desktopScreen && (
)}