Skip to content

Commit 89b24bb

Browse files
committed
feat: update the transition duration for button autoclick
1 parent e801c20 commit 89b24bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Shared/Components/Button/Button.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const Button = <ComponentType extends ButtonComponentType>({
182182
elementRef.current.click()
183183
// This is 100ms less than the duration of the transition in CSS
184184
// Make sure to update the same in CSS if this is changed
185-
}, 2400)
185+
}, 1900)
186186
}, 100)
187187
}
188188

src/Shared/Components/Button/button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
background: linear-gradient(to left, $background 50%, $auto-click-bg-color 50%) left;
4040
background-size: 200% 100%;
4141
// Make sure to change the transition in Button.component.tsx as well if changed
42-
transition: background-position 2.5s linear;
42+
transition: background-position 2s linear;
4343
}
4444
}
4545

0 commit comments

Comments
 (0)