Skip to content

Commit 1771527

Browse files
committed
fix(animation): shorten modal dismissal animation duration
Reduce the animation duration from 200ms to 150ms in the current step complete, previous steps incomplete, and tests passed overlays to create a snappier and more responsive user experience when dismissing modals.
1 parent 75b2d74 commit 1771527

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/components/course-page/course-stage-step/tests-passed-overlay.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>
77
<:content>
88
<AnimatedContainer>
9-
{{#animated-if this.modalWasDismissed duration=200 use=this.transition}}
9+
{{#animated-if this.modalWasDismissed duration=150 use=this.transition}}
1010
<CoursePage::CourseStageStep::TestsPassedNotice
1111
class="px-3 md:px-6 lg:px-10 w-full scroll-mt-20"
1212
{{! Ensure this is visible when modal is dismissed }}

app/components/course-page/current-step-complete-overlay.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>
77
<:content>
88
<AnimatedContainer>
9-
{{#animated-if this.modalWasDismissed duration=200 use=this.transition}}
9+
{{#animated-if this.modalWasDismissed duration=150 use=this.transition}}
1010
<CoursePage::CompletedStepNotice
1111
{{! @glint-expect-error repository is nullable according to coursePageState }}
1212
@repository={{this.coursePageState.stepList.repository}}

app/components/course-page/previous-steps-incomplete-overlay.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>
77
<:content>
88
<AnimatedContainer>
9-
{{#animated-if this.modalWasDismissed duration=200 use=this.transition}}
9+
{{#animated-if this.modalWasDismissed duration=150 use=this.transition}}
1010
<CoursePage::PreviousStepsIncompleteNotice
1111
@step={{@currentStep}}
1212
class="px-3 md:px-6 lg:px-10 w-full scroll-mt-20"

0 commit comments

Comments
 (0)