Skip to content

Commit cb508fe

Browse files
committed
Release 2.0.0
1 parent 547d5f3 commit cb508fe

9 files changed

+21
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## Version 2.0.0
4+
Not the promised version, but should help with some unwanted bugs.
5+
6+
- `replace: true` has been removed from the directives.
7+
- Preserve `margin-bottom` of each toasts.
8+
9+
**BREAKING CHANGE:**
10+
11+
`replace: true` has been removed. If you use a custom template, you will probably need to do
12+
some CSS changes. On the good part, it should help with some bugs.
13+
314
## Version 1.7.0
415

516
- `toastr` service has an `active()` method to get all the opened toasts.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-toastr",
3-
"version": "1.7.0",
3+
"version": "2.0.0",
44
"authors": [
55
"Jesus Rodriguez <[email protected]>"
66
],

dist/angular-toastr.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@ button.toast-close-button {
126126
#toast-container.toast-top-center .toast,
127127
#toast-container.toast-bottom-center .toast {
128128
width: 300px;
129-
margin: auto;
129+
margin-left: auto;
130+
margin-right: auto;
130131
}
131132
#toast-container.toast-top-full-width .toast,
132133
#toast-container.toast-bottom-full-width .toast {
133134
width: 96%;
134-
margin: auto;
135+
margin-left: auto;
136+
margin-right: auto;
135137
}
136138
.toast {
137139
background-color: #030303;
@@ -148,7 +150,7 @@ button.toast-close-button {
148150
.toast-warning {
149151
background-color: #F89406;
150152
}
151-
.toast-progress {
153+
progress-bar {
152154
position: absolute;
153155
left: 0;
154156
bottom: 0;

dist/angular-toastr.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@
333333

334334
function progressBar(toastrConfig) {
335335
return {
336-
replace: true,
337336
require: '^toast',
338337
templateUrl: function() {
339338
return toastrConfig.templates.progressbar;

dist/angular-toastr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)