Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
21226f50
Commit
21226f50
authored
Feb 10, 2020
by
ddavison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 0.15s transition duration for flash close
parent
d07867ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/flash.js
app/assets/javascripts/flash.js
+1
-1
spec/javascripts/flash_spec.js
spec/javascripts/flash_spec.js
+1
-1
No files found.
app/assets/javascripts/flash.js
View file @
21226f50
...
...
@@ -11,7 +11,7 @@ const FLASH_TYPES = {
const
hideFlash
=
(
flashEl
,
fadeTransition
=
true
)
=>
{
if
(
fadeTransition
)
{
Object
.
assign
(
flashEl
.
style
,
{
transition
:
'
opacity
.3
s
'
,
transition
:
'
opacity
0.15
s
'
,
opacity
:
'
0
'
,
});
}
...
...
spec/javascripts/flash_spec.js
View file @
21226f50
...
...
@@ -40,7 +40,7 @@ describe('Flash', () => {
expect
(
el
.
style
[
'
transition-property
'
]).
toBe
(
'
opacity
'
);
expect
(
el
.
style
[
'
transition-duration
'
]).
toBe
(
'
0.
3
s
'
);
expect
(
el
.
style
[
'
transition-duration
'
]).
toBe
(
'
0.
15
s
'
);
});
it
(
'
sets opacity style
'
,
()
=>
{
...
...
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