Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(theme): freeze the segment group indicator under reduced motion

Josh Corbett3d57eca5e3cb
diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts
index 45a8600fd5..3dad6fe3fe 100644
--- a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts
+++ b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts
@@ -197,6 +197,9 @@ export const segmentGroupSlotRecipe = defineSlotRecipe({
},
indicator: {
...chakraSlotRecipes.segmentGroup.base?.indicator,
+ // Zag slides the indicator via inline `var(--transition-duration, 150ms)`;
+ // pointing the var at the motion-aware `fast` token collapses it under reduce motion.
+ '--transition-duration': '{durations.fast}',
shadow: 'none',
zIndex: 0,
},