Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

ux: Animate Modal (#472)

Guilherme Oenningadc88b636b50
diff --git a/app/pkg/assert/assert.go b/app/pkg/assert/assert.go
index 29cd03a30..13cbf6568 100644
--- a/app/pkg/assert/assert.go
+++ b/app/pkg/assert/assert.go
@@ -33,7 +33,7 @@ func Fail(msg string, args ...interface{}) {
if currentT == nil {
panic("Did you forget to call RegisterT(t)?")
}
- currentT.Errorf(msg, args)
+ currentT.Errorf(msg, args...)
}
var currentT *testing.T
diff --git a/app/pkg/errors/errors_test.go b/app/pkg/errors/errors_test.go
index 96fbe142d..0b05de3f7 100644
--- a/app/pkg/errors/errors_test.go
+++ b/app/pkg/errors/errors_test.go
@@ -75,5 +75,5 @@ func TestNilErrors(t *testing.T) {
Expect(errors.Cause(nil)).IsNil()
Expect(errors.Stack(nil)).IsNil()
- Expect(errors.Wrap(nil, "", "")).IsNil()
+ Expect(errors.Wrap(nil, "")).IsNil()
}
diff --git a/public/components/common/Modal.scss b/public/components/common/Modal.scss
index 722474b41..5e012c939 100644
--- a/public/components/common/Modal.scss
+++ b/public/components/common/Modal.scss
@@ -9,12 +9,13 @@
text-align: center;
vertical-align: middle;
padding: 1em;
- background-color: rgba(0,0,0,.70);
+ background-color: rgba(60, 60, 60, .8);
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
overflow-y: hidden;
+ animation: dimmerFadeIn 0.5s;
@media only screen and (max-height: 483px) {
overflow-y: scroll;
@@ -22,6 +23,23 @@
}
}
+@keyframes dimmerFadeIn {
+ from { background-color: rgba(60, 60, 60, .1); }
+ to { background-color: rgba(60, 60, 60, .8); }
+}
+
+
+@keyframes windowfadeIn {
+ from {
+ transform: scale(0.7);
+ opacity: 0;
+ }
+ to {
+ transform: scale(1);
+ opacity: 1;
+ }
+}
+
.c-modal-window {
z-index: 101;
text-align: left;
@@ -31,6 +49,7 @@
-webkit-box-shadow: 1px 3px 3px 0 rgba(0,0,0,.2), 1px 3px 15px 2px rgba(0,0,0,.2);
box-shadow: 1px 3px 3px 0 rgba(0,0,0,.2), 1px 3px 15px 2px rgba(0,0,0,.2);
width: 100%;
+ animation: windowfadeIn 0.5s;
&.m-small {
@include media(">=md") {