-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2158 - Fix the broken 'Reduced-motion' mode #2316
#2158 - Fix the broken 'Reduced-motion' mode #2316
Conversation
@@ -15,7 +15,7 @@ span.c-twrapper( | |||
|
|||
.c-tooltip( | |||
:style='styles' | |||
:class='{"has-text-center": isTextCenter, "is-active": isActive, manual, "is-dark-theme": $store.getters.isDarkTheme}' | |||
:class='{"has-text-center": isTextCenter, "is-active": isActive, manual, "is-dark-theme": $store.getters.isDarkTheme, "in-reduced-motion": isReducedMotionMode }' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tooltip needs a special treatment here because, when it becomes active, it's appended to <body>
not the root Vue component (<div id='#app'>
)
@@ -1,5 +1,5 @@ | |||
<template lang='pug'> | |||
.c-message( | |||
.c-message.force-motion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message highlight animation still needs to happen regardless of reduced-motion
setting.
*:not(.force-motion)::after, | ||
*:not(.force-motion)::before { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed some animations happen in the ::after
, ::before
pseudo elements. eg) checkbox, toggle-button.
So took that into account here too.
group-income Run #2945
Run Properties:
|
Project |
group-income
|
Branch Review |
refs/pull/2316/merge
|
Run status |
Passed #2945
|
Run duration | 10m 53s |
Commit |
fd4276a8b2 ℹ️: Merge 1ddfd39453c3bc058007c995c19b7ffff81d0689 into d2a7b75643945aec5a5026a814a4...
|
Committer | Sebin Song |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
10
|
Skipped |
0
|
Passing |
111
|
View all changes introduced in this branch ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work @SebinSong! Tested and it works well. 👍
closes #2158
it appears that this feature was broken when the vuex-state for app-settings was moved to a separate module. So fixed it.
While at it, created a
.force-motion
css class for any part of the app where the animation still needs to happen regardless of the reduced-motion setting.(eg. this highlight animation for
move-to-specific-message
feature in the chat-room.)Cheers,