Skip to content

Commit

Permalink
#29: tuneup toast design anf animation
Browse files Browse the repository at this point in the history
  • Loading branch information
petervojtek committed Mar 8, 2017
1 parent 2c99e4f commit c013c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Main extends React.Component {
this.refs.toastContainer.info(
"Vyhľadávanie POIs funguje až od zoom úrovne 12",
null,
{ timeOut: 3000 }
{ timeOut: 3000, showAnimation: 'animated fadeIn', hideAnimation: 'animated fadeOut' }
);
} else {
this.props.onShowObjectsModal();
Expand Down
4 changes: 4 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
&:hover {
cursor: pointer;
}
}

.toast-info {
background-color: #009c00;
}

0 comments on commit c013c10

Please sign in to comment.