Skip to content

Commit

Permalink
fix(modal): Modals regain their fly-in behavior
Browse files Browse the repository at this point in the history
[Fixes #94552398]

Signed-off-by: Geoff Pleiss <gpleiss@pivotallabs.com>
  • Loading branch information
Charles Hansen authored and vinsonchuong committed May 18, 2015
1 parent 726fbb8 commit 1704b41
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pui-css-bootstrap",
"style": "bootstrap.css",
"version": "0.0.2",
"version": "0.0.3",
"description": "Custom build of Bootstrap for Pivotal UI",
"repository": {
"type": "git",
Expand Down
20 changes: 20 additions & 0 deletions src/pivotal-ui/components/modals/modals.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
@import "../pui-variables";
@import '../mixins';
@import "../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins";
@import "../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/modals";

.modal-fade-enter, .modal-fade-leave {
@extend .fade;

//Base .fade styles from bootstrap
@include transition(opacity .15s linear);
opacity: 0;
}

//Class created in React Animations
.modal-fade-enter-active {
@extend .in;

//Base .in styles from bootstrap
opacity: 1;
}


/*doc
---
Expand Down
5 changes: 2 additions & 3 deletions src/pivotal-ui/components/modals/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"version": "0.0.6",
"version": "0.0.7",
"homepage": "http://styleguide.pivotal.io/objects.html#modal",
"dependencies": {
"pui-css-bootstrap": "*",
"pui-css-react-animations": ">=0.0.3"
"pui-css-bootstrap": "*"
}
}
2 changes: 1 addition & 1 deletion src/pivotal-ui/components/react-animations/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"homepage": "http://styleguide.pivotal.io",
"dependencies": {},
"version": "0.0.3"
"version": "0.0.4"
}
20 changes: 0 additions & 20 deletions src/pivotal-ui/components/react-animations/react-animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,6 @@
@import '../mixins';
@import "../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins";

//Bootstrap
%fade {
opacity: 0;
@include transition(opacity .15s linear);
&.in {
opacity: 1;
}
}

.fade-enter {
@extend %fade;

&-active {
@extend %fade.in;
}
}

.fade-leave {
@extend %fade;
}

.new-enter {
-webkit-animation: new-item-grow .3s cubic-bezier(0.895, 0.03, 0.685, 0.22) forwards, new-item-fade .5s ease-in .15s forwards;
Expand Down
2 changes: 1 addition & 1 deletion src/pivotal-ui/frameworks/bootstrap-sass-v3.2.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/close";

// Components w/ JavaScript
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/modals";
//@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/modals";
//@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/tooltip";
//@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/popovers";
//@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/carousel";
Expand Down

0 comments on commit 1704b41

Please sign in to comment.