Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🎋 fix: Reconcile Canary Promotion Static Checks

Lia443d27ba32a1
diff --git a/client/src/components/Agents/CopyLink.tsx b/client/src/components/Agents/CopyLink.tsx
index 2bf3b51db2..849b46af7f 100644
--- a/client/src/components/Agents/CopyLink.tsx
+++ b/client/src/components/Agents/CopyLink.tsx
@@ -80,7 +80,8 @@ export default function CopyLink({ url, disabled = false }: CopyLinkProps) {
<>
<Button
variant="outline"
- className="min-w-0 px-3"
+ size="dense"
+ className="min-w-0"
onClick={handleCopy}
aria-disabled={disabled || undefined}
aria-label={isCopied ? copiedLabel : idleLabel}
@@ -89,7 +90,7 @@ export default function CopyLink({ url, disabled = false }: CopyLinkProps) {
<span
aria-hidden="true"
style={width == null ? undefined : { width }}
- className="grid max-w-full overflow-hidden text-start transition-[width] duration-300 ease-out motion-reduce:transition-none"
+ className="grid max-w-full overflow-hidden text-start transition-all duration-300 ease-out motion-reduce:transition-none"
>
<span
className={cn(
diff --git a/client/src/components/Agents/GridSkeleton.tsx b/client/src/components/Agents/GridSkeleton.tsx
index 87a4f85422..5a8db2607b 100644
--- a/client/src/components/Agents/GridSkeleton.tsx
+++ b/client/src/components/Agents/GridSkeleton.tsx
@@ -19,17 +19,17 @@ interface GridSkeletonProps {
const card = (
<>
<div className="flex items-start justify-between gap-3">
- <Skeleton className="size-12 rounded-full motion-reduce:animate-none sm:size-14" />
- <Skeleton className="h-6 w-16 rounded-full motion-reduce:animate-none" />
+ <Skeleton className="size-12 rounded-full sm:size-14" />
+ <Skeleton className="h-6 w-16 rounded-full" />
</div>
- <Skeleton className="mt-4 h-6 w-3/4 motion-reduce:animate-none" />
+ <Skeleton className="mt-4 h-6 w-3/4" />
<div className="mt-3 mb-5 space-y-2">
- <Skeleton className="h-4 w-full motion-reduce:animate-none" />
- <Skeleton className="h-4 w-5/6 motion-reduce:animate-none" />
+ <Skeleton className="h-4 w-full" />
+ <Skeleton className="h-4 w-5/6" />
</div>
<div className="border-border-light mt-auto flex justify-between gap-3 border-t pt-4">
- <Skeleton className="h-4 w-24 motion-reduce:animate-none" />
- <Skeleton className="h-4 w-20 motion-reduce:animate-none" />
+ <Skeleton className="h-4 w-24" />
+ <Skeleton className="h-4 w-20" />
</div>
</>
);
@@ -92,7 +92,7 @@ export default function GridSkeleton({ scrollElementRef, label }: GridSkeletonPr
{Array.from({ length: count }, (_, index) => (
<div
key={index}
- className="rounded-theme-surface border-border-light bg-surface-secondary flex min-h-[17.5rem] min-w-0 flex-col border p-5"
+ className="border-border-light bg-surface-secondary rounded-theme-surface flex min-h-[17.5rem] min-w-0 flex-col border p-5"
>
{card}
</div>
diff --git a/client/src/components/Agents/MineFilterToggle.tsx b/client/src/components/Agents/MineFilterToggle.tsx
index c3e808843f..667787a98d 100644
--- a/client/src/components/Agents/MineFilterToggle.tsx
+++ b/client/src/components/Agents/MineFilterToggle.tsx
@@ -1,7 +1,6 @@
import { UserRound } from 'lucide-react';
import { Button, TooltipAnchor } from '@librechat/client';
import { useLocalize } from '~/hooks';
-import { cn } from '~/utils';
interface MineFilterToggleProps {
checked: boolean;
@@ -16,15 +15,11 @@ const MineFilterToggle: React.FC<MineFilterToggleProps> = ({ checked, onCheckedC
description={localize('com_agents_filter_mine')}
render={
<Button
- variant="outline"
+ variant="outline-toggle"
aria-label={localize('com_agents_my_agents')}
- size="sm"
+ size="compact"
aria-pressed={checked}
onClick={() => onCheckedChange(!checked)}
- className={cn(
- 'h-8 gap-1.5 px-2.5 text-xs transition-none',
- checked && 'border-border-heavy bg-surface-active-alt hover:bg-surface-active-alt',
- )}
>
<UserRound className="size-3.5" aria-hidden="true" />
{localize('com_agents_my_agents')}
diff --git a/client/src/components/Agents/SortDropdown.tsx b/client/src/components/Agents/SortDropdown.tsx
index 6022e207d2..606d4e0f12 100644
--- a/client/src/components/Agents/SortDropdown.tsx
+++ b/client/src/components/Agents/SortDropdown.tsx
@@ -48,7 +48,8 @@ const SortDropdown: React.FC<SortDropdownProps> = ({ value, onChange }) => {
sizeClasses="w-40"
icon={<ArrowDownWideNarrow className="size-3.5 shrink-0" aria-hidden="true" />}
shape="default"
- triggerClassName="h-8 w-40 px-2.5 py-0 text-xs transition-none"
+ variant="compact"
+ triggerClassName="w-40"
testId="agent-sort-dropdown"
aria-labelledby={labelId}
/>
diff --git a/client/src/components/Auth/Footer.tsx b/client/src/components/Auth/Footer.tsx
index 182ed1195d..4867284ec5 100644
--- a/client/src/components/Auth/Footer.tsx
+++ b/client/src/components/Auth/Footer.tsx
@@ -13,7 +13,7 @@ function Footer({ startupConfig }: { startupConfig: TStartupConfig | null | unde
const privacyPolicyRender = privacyPolicyUrl != null && (
<a
- className="text-sm text-accent-primary underline decoration-transparent transition-all duration-200 hover:text-accent-primary-hover hover:decoration-accent-primary-hover focus:text-accent-primary-hover focus:decoration-accent-primary-hover"
+ className="text-accent-primary hover:text-accent-primary-hover hover:decoration-accent-primary-hover focus:text-accent-primary-hover focus:decoration-accent-primary-hover text-sm underline decoration-transparent transition-all duration-200"
href={privacyPolicyUrl}
// Removed for WCAG compliance
// target={privacyPolicy.openNewTab ? '_blank' : undefined}
@@ -25,7 +25,7 @@ function Footer({ startupConfig }: { startupConfig: TStartupConfig | null | unde
const termsOfServiceRender = termsOfServiceUrl != null && (
<a
- className="text-sm text-accent-primary underline decoration-transparent transition-all duration-200 hover:text-accent-primary-hover hover:decoration-accent-primary-hover focus:text-accent-primary-hover focus:decoration-accent-primary-hover"
+ className="text-accent-primary hover:text-accent-primary-hover hover:decoration-accent-primary-hover focus:text-accent-primary-hover focus:decoration-accent-primary-hover text-sm underline decoration-transparent transition-all duration-200"
href={termsOfServiceUrl}
// Removed for WCAG compliance
// target={termsOfService.openNewTab ? '_blank' : undefined}
@@ -39,7 +39,7 @@ function Footer({ startupConfig }: { startupConfig: TStartupConfig | null | unde
<div className="align-end m-4 flex justify-center gap-2" role="contentinfo">
{privacyPolicyRender}
{privacyPolicyRender && termsOfServiceRender && (
- <div className="border-r-[1px] border-border-medium" />
+ <div className="border-border-medium border-r-[1px]" />
)}
{termsOfServiceRender}
</div>
diff --git a/client/src/components/Auth/LegalConsent.tsx b/client/src/components/Auth/LegalConsent.tsx
index 117fc4b2b0..7bd23c4431 100644
--- a/client/src/components/Auth/LegalConsent.tsx
+++ b/client/src/components/Auth/LegalConsent.tsx
@@ -40,7 +40,7 @@ function LegalConsent({ startupConfig }: { startupConfig: TStartupConfig | null
}
return (
- <p className="mt-4 text-center text-sm font-light text-text-secondary">
+ <p className="text-text-secondary mt-4 text-center text-sm font-light">
<Trans
i18nKey={consentKey(privacyPolicyUrl, termsOfServiceUrl)}
components={{
diff --git a/client/src/components/Auth/VerifyEmail.tsx b/client/src/components/Auth/VerifyEmail.tsx
index e21bfeaeaa..3a46df7d6e 100644
--- a/client/src/components/Auth/VerifyEmail.tsx
+++ b/client/src/components/Auth/VerifyEmail.tsx
@@ -126,7 +126,7 @@ function RequestPasswordReset() {
);
return (
- <div className="flex min-h-screen flex-col items-center justify-center bg-surface-primary pt-6 sm:pt-0">
+ <div className="bg-surface-primary flex min-h-screen flex-col items-center justify-center pt-6 sm:pt-0">
<div className="absolute bottom-0 left-0 m-4">
<ThemeSelector />
</div>
@@ -134,27 +134,27 @@ function RequestPasswordReset() {
<h1
aria-live="polite"
aria-atomic="true"
- className="mb-4 text-center text-3xl font-semibold text-text-primary"
+ className="text-text-primary mb-4 text-center text-3xl font-semibold"
>
{statusText}
</h1>
{!verificationStatus && (
<div className="mt-4 flex justify-center">
- <Spinner className="h-8 w-8 text-accent-primary" />
+ <Spinner className="text-accent-primary h-8 w-8" />
</div>
)}
{verificationStatus && countdown > 0 && (
- <p className="text-center text-lg text-text-secondary">
+ <p className="text-text-secondary text-center text-lg">
{localize('com_auth_email_verification_redirecting', { 0: countdown.toString() })}
</p>
)}
{verificationStatus && showResendLink && countdown === 0 && (
- <p className="text-center text-lg text-text-secondary">
+ <p className="text-text-secondary text-center text-lg">
{localize('com_auth_email_verification_resend_prompt')}
<Button
type="button"
variant="link"
- className="ml-2 inline h-auto p-0 text-link"
+ className="text-link ml-2 inline h-auto p-0"
onClick={handleResendEmail}
disabled={resendEmailMutation.isLoading}
>
diff --git a/client/src/components/Chat/Footer.tsx b/client/src/components/Chat/Footer.tsx
index 2a793d53e2..aedea26caa 100644
--- a/client/src/components/Chat/Footer.tsx
+++ b/client/src/components/Chat/Footer.tsx
@@ -146,7 +146,7 @@ function Footer({ className, startupConfig, configuredOnly = false }: FooterProp
rather than the brighter `text-secondary`: the underline carries the
affordance, and a link that outshines its own sentence puts the
emphasis back where this change takes it from. */
- 'absolute bottom-0 left-0 right-0 hidden items-center justify-center gap-2 px-2 py-2 text-center text-xs text-text-muted sm:flex md:px-[60px]'
+ 'text-text-muted absolute right-0 bottom-0 left-0 hidden items-center justify-center gap-2 px-2 py-2 text-center text-xs sm:flex md:px-[60px]'
}
>
{footerElements.map((contentRender, index) => {
@@ -157,7 +157,7 @@ function Footer({ className, startupConfig, configuredOnly = false }: FooterProp
{!isLastElement && (
<div
key={`separator-${index}`}
- className="h-2 border-r-[1px] border-border-medium"
+ className="border-border-medium h-2 border-r-[1px]"
/>
)}
</React.Fragment>
diff --git a/client/src/components/Nav/SettingsTabs/Account/ChangeEmail.tsx b/client/src/components/Nav/SettingsTabs/Account/ChangeEmail.tsx
index d1c385ab54..3f4f521d26 100644
--- a/client/src/components/Nav/SettingsTabs/Account/ChangeEmail.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/ChangeEmail.tsx
@@ -81,7 +81,7 @@ export default function ChangeEmail() {
<div className="flex items-center justify-between gap-4">
<div className="min-w-0">
<Label id="change-email-label">{localize('com_ui_settings_label_change_email')}</Label>
- <p className="truncate text-xs text-text-secondary">{user?.email}</p>
+ <p className="text-text-secondary truncate text-xs">{user?.email}</p>
</div>
<OGDialogTrigger asChild>
<Button aria-label={localize('com_ui_email_change_title')} variant="outline">
@@ -128,7 +128,7 @@ export default function ChangeEmail() {
/>
</div>
{errorKey && (
- <p id="change-email-error" className="text-sm text-text-destructive" role="alert">
+ <p id="change-email-error" className="text-text-destructive text-sm" role="alert">
{localize(errorKey)}
</p>
)}
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index dfcb80aa3a..38cb7cfbbc 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -27,19 +27,6 @@
"count": 3
}
},
- "client/src/components/Agents/CopyLink.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- },
- "shadcn/no-restyle": {
- "count": 1
- }
- },
- "client/src/components/Agents/GridSkeleton.tsx": {
- "shadcn/no-restyle": {
- "count": 7
- }
- },
"client/src/components/Agents/Marketplace.tsx": {
"shadcn/no-restyle": {
"count": 1
@@ -50,21 +37,11 @@
"count": 1
}
},
- "client/src/components/Agents/MineFilterToggle.tsx": {
- "shadcn/no-restyle": {
- "count": 7
- }
- },
"client/src/components/Agents/SearchBar.tsx": {
"shadcn/no-restyle": {
"count": 7
}
},
- "client/src/components/Agents/SortDropdown.tsx": {
- "shadcn/no-restyle": {
- "count": 4
- }
- },
"client/src/components/Agents/VirtualizedAgentGrid.tsx": {
"shadcn/no-inline-styles": {
"count": 3
@@ -2240,11 +2217,6 @@
"count": 1
}
},
- "packages/client/src/components/LoadingDots.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
"packages/client/src/components/PixelCard.tsx": {
"shadcn/no-inline-styles": {
"count": 1
diff --git a/packages/client/src/components/Button.spec.tsx b/packages/client/src/components/Button.spec.tsx
index d5abb3208b..380bd6b914 100644
--- a/packages/client/src/components/Button.spec.tsx
+++ b/packages/client/src/components/Button.spec.tsx
@@ -10,6 +10,47 @@ jest.mock('react-i18next', () => ({
}));
describe('Button', () => {
+ it('owns dense action padding without changing the default-height recipe', () => {
+ render(
+ <Button variant="outline" size="dense">
+ Copy link
+ </Button>,
+ );
+
+ const button = screen.getByRole('button', { name: 'Copy link' });
+ expect(button).toHaveClass('h-theme-button', 'px-3', 'py-2');
+ expect(button).not.toHaveClass('px-4');
+ });
+
+ it('owns compact filter geometry, immediate motion and semantic pressed-state fills', () => {
+ const { rerender } = render(
+ <Button variant="outline-toggle" size="compact" aria-pressed={false}>
+ My agents
+ </Button>,
+ );
+
+ const button = screen.getByRole('button', { name: 'My agents' });
+ expect(button).toHaveClass(
+ 'h-8',
+ 'gap-1.5',
+ 'px-2.5',
+ 'text-xs',
+ 'transition-none',
+ 'aria-pressed:border-border-heavy',
+ 'aria-pressed:bg-surface-active-alt',
+ 'aria-pressed:hover:bg-surface-active-alt',
+ );
+ expect(button).not.toHaveClass('gap-2', 'px-4', 'text-sm', 'h-theme-button');
+ expect(button).toHaveAttribute('aria-pressed', 'false');
+
+ rerender(
+ <Button variant="outline-toggle" size="compact" aria-pressed>
+ My agents
+ </Button>,
+ );
+ expect(button).toHaveAttribute('aria-pressed', 'true');
+ });
+
it('exposes theme-owned shape and density recipes', () => {
render(
<Button size="theme" shape="theme">
diff --git a/packages/client/src/components/Button.tsx b/packages/client/src/components/Button.tsx
index 86758bfff0..513bd202d1 100644
--- a/packages/client/src/components/Button.tsx
+++ b/packages/client/src/components/Button.tsx
@@ -12,6 +12,7 @@ type ButtonVariantOptions =
| 'link'
| 'submit'
| 'outline'
+ | 'outline-toggle'
| 'choice'
| 'subtle'
| 'destructive'
@@ -28,6 +29,8 @@ type ButtonVariantOptions =
| undefined;
size?:
| 'default'
+ | 'dense'
+ | 'compact'
| 'icon'
| 'icon-sm'
| 'icon-xs'
@@ -58,6 +61,9 @@ const buttonVariantRecipe = cva(
'bg-surface-destructive text-text-on-status hover:bg-surface-destructive-hover',
outline:
'text-text-primary border border-border-light bg-transparent hover:bg-surface-hover hover:active:bg-surface-pressed hover:text-text-primary',
+ /** An outlined filter whose pressed state stays visible between activations. */
+ 'outline-toggle':
+ 'text-text-primary border border-border-light bg-transparent transition-none hover:bg-surface-hover hover:active:bg-surface-pressed hover:text-text-primary aria-pressed:border-border-heavy aria-pressed:bg-surface-active-alt aria-pressed:hover:bg-surface-active-alt',
/**
* A selectable answer inside a question card. `outline` is wrong here:
* its `border-light` edge measures ~1.2:1 against the panel these sit
@@ -139,6 +145,10 @@ const buttonVariantRecipe = cva(
},
size: {
default: 'h-theme-button px-4 py-2',
+ /** Default-height actions with less horizontal padding, such as Copy link. */
+ dense: 'h-theme-button px-3 py-2',
+ /** Compact text controls that share a toolbar row with a compact dropdown. */
+ compact: 'h-8 gap-1.5 px-2.5 py-2 text-xs',
/**
* A chip, the text counterpart of `icon-xs`: the reset beside a list that
* matched nothing, and anything else that offers a way out without asking
diff --git a/packages/client/src/components/Dropdown.spec.tsx b/packages/client/src/components/Dropdown.spec.tsx
index e4646e4ef0..dd0630633b 100644
--- a/packages/client/src/components/Dropdown.spec.tsx
+++ b/packages/client/src/components/Dropdown.spec.tsx
@@ -85,3 +85,32 @@ describe('Dropdown shape', () => {
expect(trigger()).not.toHaveClass('rounded-theme-control-round');
});
});
+
+describe('Dropdown compact recipe', () => {
+ it('owns small-toolbar metrics without taking the selected value out of the accessible name', () => {
+ render(
+ <>
+ <span id="sort-label">Sort</span>
+ <Dropdown
+ value="12h"
+ options={OPTIONS}
+ aria-labelledby="sort-label"
+ variant="compact"
+ shape="default"
+ onChange={jest.fn()}
+ />
+ </>,
+ );
+
+ const trigger = screen.getByRole('combobox', { name: 'Sort 12-hour' });
+ expect(trigger).toHaveClass(
+ 'h-8',
+ 'px-2.5',
+ 'py-0',
+ 'text-xs',
+ 'transition-none',
+ 'rounded-lg',
+ );
+ expect(trigger).not.toHaveClass('px-3', 'py-2', 'text-sm', 'transition-all');
+ });
+});
diff --git a/packages/client/src/components/Dropdown.tsx b/packages/client/src/components/Dropdown.tsx
index 05884af1da..a47f3be83c 100644
--- a/packages/client/src/components/Dropdown.tsx
+++ b/packages/client/src/components/Dropdown.tsx
@@ -28,8 +28,8 @@ interface DropdownProps {
ariaLabel?: string;
'aria-labelledby'?: string;
portal?: boolean;
- /** `field` matches the `Input` primitive so this can sit in a form row. */
- variant?: 'default' | 'field';
+ /** `field` matches Input; `compact` supplies the small toolbar-control recipe. */
+ variant?: 'default' | 'field' | 'compact';
/**
* The trigger's corner, in `Button`'s vocabulary: `default` is `Button`'s own
* `rounded-lg`, `theme` the theme's control radius, `round` its pill. Omitted,
@@ -173,6 +173,7 @@ const Dropdown: React.FC<DropdownProps> = ({
/** Horizontal padding would squeeze the icon, which flex-shrinks to fit */
iconOnly ? 'size-10 justify-center px-0' : 'w-fit gap-2 px-3',
variant === 'field' && fieldControl,
+ variant === 'compact' && 'h-8 px-2.5 py-0 text-xs transition-none',
triggerClassName,
)}
data-testid={testId}
diff --git a/packages/client/src/components/LoadingDots.spec.tsx b/packages/client/src/components/LoadingDots.spec.tsx
new file mode 100644
index 0000000000..079af69825
--- /dev/null
+++ b/packages/client/src/components/LoadingDots.spec.tsx
@@ -0,0 +1,15 @@
+import { render, screen } from '@testing-library/react';
+import { LoadingDots } from './LoadingDots';
+
+it('supplies each decorative dot delay as a CSS variable for the shared animation recipe', () => {
+ render(<LoadingDots data-testid="dots" count={4} />);
+
+ const dots = screen.getByTestId('dots');
+ expect(dots).toHaveAttribute('aria-hidden', 'true');
+ expect(dots.children).toHaveLength(4);
+ Array.from(dots.children).forEach((dot, index) => {
+ expect(dot).toHaveStyle({ '--loading-dot-delay': `${index * 160}ms` });
+ expect(dot).toHaveClass('animate-loading-dot', 'motion-reduce:animate-none');
+ expect(dot).not.toHaveStyle({ animationDelay: `${index * 160}ms` });
+ });
+});
diff --git a/packages/client/src/components/LoadingDots.tsx b/packages/client/src/components/LoadingDots.tsx
index 4da1f4e44a..68741ef9ae 100644
--- a/packages/client/src/components/LoadingDots.tsx
+++ b/packages/client/src/components/LoadingDots.tsx
@@ -1,4 +1,4 @@
-import { JSX } from 'react/jsx-runtime';
+import type { CSSProperties, JSX } from 'react';
import { cn } from '~/utils';
/** Enough offset for the lift to travel around the row rather than pulse in unison. */
@@ -27,7 +27,7 @@ export function LoadingDots({ count = 3, className, ...props }: LoadingDotsProps
<span
key={index}
className="animate-loading-dot size-1 rounded-full bg-current motion-reduce:animate-none motion-reduce:opacity-60"
- style={{ animationDelay: `${index * DOT_STAGGER_MS}ms` }}
+ style={{ '--loading-dot-delay': `${index * DOT_STAGGER_MS}ms` } as CSSProperties}
/>
))}
</span>
diff --git a/packages/client/src/components/Skeleton.spec.tsx b/packages/client/src/components/Skeleton.spec.tsx
new file mode 100644
index 0000000000..1d2ccea760
--- /dev/null
+++ b/packages/client/src/components/Skeleton.spec.tsx
@@ -0,0 +1,13 @@
+import { render, screen } from '@testing-library/react';
+import { Skeleton } from './Skeleton';
+
+it('owns reduced-motion handling while callers retain the placeholder silhouette', () => {
+ render(<Skeleton data-testid="placeholder" className="size-12 rounded-full" />);
+
+ expect(screen.getByTestId('placeholder')).toHaveClass(
+ 'animate-pulse',
+ 'motion-reduce:animate-none',
+ 'size-12',
+ 'rounded-full',
+ );
+});
diff --git a/packages/client/src/components/Skeleton.tsx b/packages/client/src/components/Skeleton.tsx
index 90da649ae5..ec5e6ff4c4 100644
--- a/packages/client/src/components/Skeleton.tsx
+++ b/packages/client/src/components/Skeleton.tsx
@@ -5,7 +5,7 @@ function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
return (
<div
className={cn(
- 'animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25',
+ 'bg-surface-tertiary animate-pulse rounded-md opacity-50 motion-reduce:animate-none dark:opacity-25',
className,
)}
{...props}
diff --git a/packages/client/src/theme/tailwind.spec.js b/packages/client/src/theme/tailwind.spec.js
index eaad5d0596..1aee39c4bf 100644
--- a/packages/client/src/theme/tailwind.spec.js
+++ b/packages/client/src/theme/tailwind.spec.js
@@ -87,6 +87,13 @@ function tailwindDefault(variable) {
}
describe('LibreChat Tailwind preset', () => {
+ it('owns the loading-dot delay with a zero-delay fallback for plain preset consumers', async () => {
+ const css = await generate(['animate-loading-dot']);
+
+ expect(rule(css, 'animate-loading-dot')).toContain('var(--loading-dot-delay, 0ms)');
+ expect(rule(css, 'animate-loading-dot')).toContain('1.2s ease-in-out');
+ });
+
it('generates every component animation and its keyframes together', async () => {
const names = ['loading-dot', 'accordion-down', 'accordion-up', 'caret-blink'];
const css = await generate(names.map((name) => `animate-${name}`));
diff --git a/packages/client/tailwind.preset.cjs b/packages/client/tailwind.preset.cjs
index be1634b207..5c57621483 100644
--- a/packages/client/tailwind.preset.cjs
+++ b/packages/client/tailwind.preset.cjs
@@ -87,7 +87,7 @@ module.exports = {
},
},
animation: {
- 'loading-dot': 'loading-dot 1.2s ease-in-out infinite',
+ 'loading-dot': 'loading-dot 1.2s ease-in-out var(--loading-dot-delay, 0ms) infinite',
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'caret-blink': 'caret-blink 1.25s ease-out infinite',