Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
81abc4dc
Commit
81abc4dc
authored
Apr 21, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Apr 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust toast-message animations, especially for prefers-reduced-motion
parent
0e1bd045
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ToastMessages.js
src/sidebar/components/ToastMessages.js
+6
-1
tailwind.config.mjs
tailwind.config.mjs
+1
-0
No files found.
src/sidebar/components/ToastMessages.js
View file @
81abc4dc
...
...
@@ -120,8 +120,13 @@ function ToastMessages({ toastMessenger }) {
<
li
className
=
{
classnames
(
'relative w-full container hover:cursor-pointer'
,
'animate-slide-in-from-right '
,
{
// Slide in from right in narrow viewports; fade in in
// larger viewports to toast message isn't flying too far
'motion-safe:animate-slide-in-from-right lg:animate-fade-in'
:
!
message
.
isDismissed
,
// Only ever fade in if motion-reduction is preferred
'motion-reduce:animate-fade-in'
:
!
message
.
isDismissed
,
'animate-fade-out'
:
message
.
isDismissed
,
}
)}
...
...
tailwind.config.mjs
View file @
81abc4dc
...
...
@@ -18,6 +18,7 @@ export default {
animation
:
{
'adder-pop-down'
:
'adder-pop-down 0.08s ease-in forwards'
,
'adder-pop-up'
:
'adder-pop-up 0.08s ease-in forwards'
,
'fade-in'
:
'fade-in 0.3s forwards'
,
'fade-in-slow'
:
'fade-in 1s ease-in'
,
'fade-out'
:
'fade-out 0.3s forwards'
,
'slide-in-from-right'
:
'slide-in-from-right 0.3s forwards ease-in-out'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment