Skip to content

Commit 2a32566

Browse files
author
nedtwigg
committed
Codex review R2: add motion-safe prefix to shake animation for reduced-motion a11y
1 parent f04d4ca commit 2a32566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/components/Pond.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function SelectionOverlay({ apiRef, selectedId, selectedType, mode }: {
890890

891891
export function KillConfirmCard({ char, onCancel, shaking }: { char: string; onCancel?: () => void; shaking?: boolean }) {
892892
return (
893-
<div className={`bg-surface-raised border border-error/30 px-6 py-4 rounded-lg text-center shadow-lg${shaking ? ' animate-shake-x' : ''}`}>
893+
<div className={`bg-surface-raised border border-error/30 px-6 py-4 rounded-lg text-center shadow-lg${shaking ? ' motion-safe:animate-shake-x' : ''}`}>
894894
<h2 className="text-base font-bold mb-3 text-foreground">Kill Session?</h2>
895895
<div className="bg-black py-2 px-6 rounded border border-border inline-block mb-2">
896896
<span className="text-xl font-bold text-error">{char}</span>

0 commit comments

Comments
 (0)