Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(ui): use animation-duration-* on keyframe-animated overlays (MUL-9998) (#11337)

Jiayuan Zhangd744a280b24c
diff --git a/packages/ui/components/ui/__tests__/overlay-transitions.test.tsx b/packages/ui/components/ui/__tests__/overlay-transitions.test.tsx
new file mode 100644
index 0000000000..dacc5c9e4f
--- /dev/null
+++ b/packages/ui/components/ui/__tests__/overlay-transitions.test.tsx
@@ -0,0 +1,140 @@
+import { cleanup, render } from "@testing-library/react";
+import { afterEach, describe, expect, it } from "vitest";
+import { AlertDialog, AlertDialogContent, AlertDialogTitle } from "../alert-dialog";
+import { ContextMenu, ContextMenuContent, ContextMenuItem } from "../context-menu";
+import { Dialog, DialogContent, DialogTitle } from "../dialog";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuSub,
+ DropdownMenuSubContent,
+} from "../dropdown-menu";
+import { HoverCard, HoverCardContent } from "../hover-card";
+import { Popover, PopoverContent } from "../popover";
+import { Select, SelectContent, SelectItem } from "../select";
+
+afterEach(cleanup);
+
+function slotClasses(slot: string): string[] {
+ const el = document.querySelector(`[data-slot='${slot}']`);
+ expect(el, `missing [data-slot='${slot}']`).not.toBeNull();
+ return (el?.getAttribute("class") ?? "").split(/\s+/);
+}
+
+function expectAnimationOnlyDuration(classes: string[], expected: string[]) {
+ for (const token of expected) {
+ expect(classes).toContain(token);
+ }
+ // `duration-*` emits `transition-duration` against default `transition-property: all`;
+ // `animation-duration-*` scopes timing strictly to keyframe animations without adding
+ // `transition-none` (which would override caller-supplied arbitrary geometry transitions).
+ expect(classes.filter((c) => /(^|:)duration-/.test(c))).toEqual([]);
+ expect(classes).not.toContain("transition-none");
+}
+
+describe("keyframe-animated Base UI overlays", () => {
+ it("uses animation-duration tokens on Dialog overlay and content", () => {
+ render(
+ <Dialog open>
+ <DialogContent>
+ <DialogTitle>Title</DialogTitle>
+ </DialogContent>
+ </Dialog>,
+ );
+ const expected = [
+ "data-open:animation-duration-[var(--dialog-enter-duration)]",
+ "data-closed:animation-duration-[var(--dialog-exit-duration)]",
+ ];
+ expectAnimationOnlyDuration(slotClasses("dialog-overlay"), expected);
+ expectAnimationOnlyDuration(slotClasses("dialog-content"), expected);
+ });
+
+ it("preserves caller arbitrary geometry transitions on DialogContent", () => {
+ render(
+ <Dialog open>
+ <DialogContent className="[transition-property:width,max-width,height] [transition-duration:200ms]">
+ <DialogTitle>Create issue</DialogTitle>
+ </DialogContent>
+ </Dialog>,
+ );
+ const classes = slotClasses("dialog-content");
+ expect(classes).toContain("[transition-property:width,max-width,height]");
+ expect(classes).toContain("[transition-duration:200ms]");
+ expect(classes).not.toContain("transition-none");
+ });
+
+ it("uses animation-duration tokens on AlertDialog overlay and content", () => {
+ render(
+ <AlertDialog open>
+ <AlertDialogContent>
+ <AlertDialogTitle>Confirm</AlertDialogTitle>
+ </AlertDialogContent>
+ </AlertDialog>,
+ );
+ const expected = [
+ "data-open:animation-duration-[var(--dialog-enter-duration)]",
+ "data-closed:animation-duration-[var(--dialog-exit-duration)]",
+ ];
+ expectAnimationOnlyDuration(slotClasses("alert-dialog-overlay"), expected);
+ expectAnimationOnlyDuration(slotClasses("alert-dialog-content"), expected);
+ });
+
+ it("uses animation-duration-100 on Popover content", () => {
+ render(
+ <Popover open>
+ <PopoverContent>Body</PopoverContent>
+ </Popover>,
+ );
+ expectAnimationOnlyDuration(slotClasses("popover-content"), ["animation-duration-100"]);
+ });
+
+ it("uses animation-duration-100 on DropdownMenu content and sub-content", () => {
+ render(
+ <DropdownMenu open>
+ <DropdownMenuContent>
+ <DropdownMenuItem>One</DropdownMenuItem>
+ <DropdownMenuSub open>
+ <DropdownMenuSubContent>
+ <DropdownMenuItem>Sub</DropdownMenuItem>
+ </DropdownMenuSubContent>
+ </DropdownMenuSub>
+ </DropdownMenuContent>
+ </DropdownMenu>,
+ );
+ expectAnimationOnlyDuration(slotClasses("dropdown-menu-content"), ["animation-duration-100"]);
+ expectAnimationOnlyDuration(slotClasses("dropdown-menu-sub-content"), ["animation-duration-100"]);
+ });
+
+ it("uses animation-duration-100 on ContextMenu content", () => {
+ render(
+ <ContextMenu open>
+ <ContextMenuContent>
+ <ContextMenuItem>Copy</ContextMenuItem>
+ </ContextMenuContent>
+ </ContextMenu>,
+ );
+ expectAnimationOnlyDuration(slotClasses("context-menu-content"), ["animation-duration-100"]);
+ });
+
+ it("uses animation-duration-100 on Select content", () => {
+ render(
+ <Select open items={{ a: "Alpha" }} value="a">
+ <SelectContent>
+ <SelectItem value="a">Alpha</SelectItem>
+ </SelectContent>
+ </Select>,
+ );
+ expectAnimationOnlyDuration(slotClasses("select-content"), ["animation-duration-100"]);
+ });
+
+ it("uses animation-duration-100 on HoverCard content and preserves instant-close overrides", () => {
+ render(
+ <HoverCard open>
+ <HoverCardContent className="data-closed:animation-duration-0">Preview</HoverCardContent>
+ </HoverCard>,
+ );
+ const classes = slotClasses("hover-card-content");
+ expectAnimationOnlyDuration(classes, ["animation-duration-100", "data-closed:animation-duration-0"]);
+ });
+});
diff --git a/packages/ui/components/ui/alert-dialog.tsx b/packages/ui/components/ui/alert-dialog.tsx
index 24fec6de67..0eba94d8c1 100644
--- a/packages/ui/components/ui/alert-dialog.tsx
+++ b/packages/ui/components/ui/alert-dialog.tsx
@@ -35,7 +35,7 @@ function AlertDialogOverlay({
<AlertDialogPrimitive.Backdrop
data-slot="alert-dialog-overlay"
className={cn(
- "fixed inset-0 isolate z-50 bg-black/10 data-open:duration-[var(--dialog-enter-duration)] data-closed:duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
+ "fixed inset-0 isolate z-50 bg-black/10 data-open:animation-duration-[var(--dialog-enter-duration)] data-closed:animation-duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
className
)}
{...props}
@@ -58,7 +58,7 @@ function AlertDialogContent({
data-slot="alert-dialog-content"
data-size={size}
className={cn(
- "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] grid-cols-1 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-dialog bg-surface-raised p-4 text-popover-foreground shadow-[var(--floating-shadow)] ring-1 ring-surface-border data-open:duration-[var(--dialog-enter-duration)] data-closed:duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] grid-cols-1 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-dialog bg-surface-raised p-4 text-popover-foreground shadow-[var(--floating-shadow)] ring-1 ring-surface-border data-open:animation-duration-[var(--dialog-enter-duration)] data-closed:animation-duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
diff --git a/packages/ui/components/ui/context-menu.tsx b/packages/ui/components/ui/context-menu.tsx
index d24958033d..190dfa9e3a 100644
--- a/packages/ui/components/ui/context-menu.tsx
+++ b/packages/ui/components/ui/context-menu.tsx
@@ -54,7 +54,7 @@ function ContextMenuContent({
>
<ContextMenuPrimitive.Popup
data-slot="context-menu-content"
- className={cn("z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
+ className={cn("z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
{...props}
/>
</ContextMenuPrimitive.Positioner>
diff --git a/packages/ui/components/ui/dialog.tsx b/packages/ui/components/ui/dialog.tsx
index 290ffa69de..5a3f89fd29 100644
--- a/packages/ui/components/ui/dialog.tsx
+++ b/packages/ui/components/ui/dialog.tsx
@@ -51,7 +51,7 @@ function DialogOverlay({
<DialogPrimitive.Backdrop
data-slot="dialog-overlay"
className={cn(
- "fixed inset-0 isolate z-50 bg-black/10 data-open:duration-[var(--dialog-enter-duration)] data-closed:duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
+ "fixed inset-0 isolate z-50 bg-black/10 data-open:animation-duration-[var(--dialog-enter-duration)] data-closed:animation-duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
className
)}
{...props}
@@ -101,7 +101,7 @@ function DialogContent({
// fits is unaffected. `overflow-auto` shares tailwind-merge's
// conflict group with `overflow-hidden`, so a dialog that manages
// its own scrolling still opts out by passing that.
- "fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-auto rounded-dialog bg-surface-raised p-4 text-body text-popover-foreground shadow-[var(--floating-shadow)] ring-1 ring-surface-border data-open:duration-[var(--dialog-enter-duration)] data-closed:duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-auto rounded-dialog bg-surface-raised p-4 text-body text-popover-foreground shadow-[var(--floating-shadow)] ring-1 ring-surface-border data-open:animation-duration-[var(--dialog-enter-duration)] data-closed:animation-duration-[var(--dialog-exit-duration)] data-open:ease-[var(--dialog-enter-easing)] data-closed:ease-[var(--dialog-exit-easing)] motion-reduce:animate-none! outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
diff --git a/packages/ui/components/ui/dropdown-menu.tsx b/packages/ui/components/ui/dropdown-menu.tsx
index 6229d954a8..b383d95107 100644
--- a/packages/ui/components/ui/dropdown-menu.tsx
+++ b/packages/ui/components/ui/dropdown-menu.tsx
@@ -75,7 +75,7 @@ function DropdownMenuContent({
e.stopPropagation()
onClick?.(e)
}}
- className={cn("z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className )}
+ className={cn("z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className )}
{...props}
/>
</MenuPrimitive.Positioner>
@@ -181,7 +181,7 @@ function DropdownMenuSubContent({
return (
<DropdownMenuContent
data-slot="dropdown-menu-sub-content"
- className={cn("w-auto min-w-[96px] rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
+ className={cn("w-auto min-w-[96px] rounded-menu bg-surface-raised p-1.5 text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
align={align}
alignOffset={alignOffset}
side={side}
diff --git a/packages/ui/components/ui/hover-card.tsx b/packages/ui/components/ui/hover-card.tsx
index c801ab77f0..7a566765ca 100644
--- a/packages/ui/components/ui/hover-card.tsx
+++ b/packages/ui/components/ui/hover-card.tsx
@@ -68,7 +68,7 @@ function HoverCardContent({
onAuxClick={stop(onAuxClick)}
onDoubleClick={stop(onDoubleClick)}
className={cn(
- "z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-body text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-body text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
diff --git a/packages/ui/components/ui/popover.tsx b/packages/ui/components/ui/popover.tsx
index 506273e307..a2dd628525 100644
--- a/packages/ui/components/ui/popover.tsx
+++ b/packages/ui/components/ui/popover.tsx
@@ -67,7 +67,7 @@ function PopoverContent({
<PopoverPrimitive.Popup
data-slot="popover-content"
className={cn(
- "z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-popover bg-surface-raised p-2.5 text-body text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border outline-hidden duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-popover bg-surface-raised p-2.5 text-body text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border outline-hidden animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
diff --git a/packages/ui/components/ui/select.tsx b/packages/ui/components/ui/select.tsx
index 815b9cad6b..a10e7fdfeb 100644
--- a/packages/ui/components/ui/select.tsx
+++ b/packages/ui/components/ui/select.tsx
@@ -98,7 +98,7 @@ function SelectContent({
<SelectPrimitive.Popup
data-slot="select-content"
data-align-trigger={alignItemWithTrigger}
- className={cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
+ className={cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-menu bg-surface-raised text-popover-foreground shadow-[var(--menu-shadow)] ring-1 ring-floating-border animation-duration-100 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:animate-none! data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )}
{...props}
>
<SelectScrollUpButton />
diff --git a/packages/views/issues/components/source-context-viewer.tsx b/packages/views/issues/components/source-context-viewer.tsx
index c727f0325b..c72700790e 100644
--- a/packages/views/issues/components/source-context-viewer.tsx
+++ b/packages/views/issues/components/source-context-viewer.tsx
@@ -209,7 +209,7 @@ export function SourceContextBadge({
<DialogContent
showCloseButton={false}
className={cn(
- "flex w-full max-w-[calc(100%-2rem)] flex-col gap-0 overflow-hidden p-0 transition-[height,max-width] motion-reduce:transition-none",
+ "flex w-full max-w-[calc(100%-2rem)] flex-col gap-0 overflow-hidden p-0 transition-[height,max-width] duration-100 motion-reduce:transition-none",
viewerExpanded
? "h-[calc(100%-2rem)] sm:max-w-[calc(100%-2rem)]"
: "h-[min(82%,56rem)] sm:max-w-4xl",
diff --git a/packages/views/layout/panels/inbox-section.tsx b/packages/views/layout/panels/inbox-section.tsx
index 1c6891e3c0..dfa9e3dc42 100644
--- a/packages/views/layout/panels/inbox-section.tsx
+++ b/packages/views/layout/panels/inbox-section.tsx
@@ -1148,7 +1148,7 @@ const InboxRow = memo(function InboxRow({
align="start"
sideOffset={12}
alignOffset={-8}
- className={cn("w-72 p-3", cardDismissed && "data-closed:duration-0")}
+ className={cn("w-72 p-3", cardDismissed && "data-closed:animation-duration-0")}
>
<InboxRowCard
item={item}