File tree Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ export default {
71
71
return [
72
72
' toast' ,
73
73
{
74
- ' d-none ' : ! this .isShowed && ! this .hidding ,
75
- ' full' : this .props .position .includes (' full' ),
74
+ ' show ' : this .isShowed || this .hidding ,
75
+ ' toast- full' : this .props .position .includes (' full' ),
76
76
}
77
77
]
78
78
},
@@ -152,15 +152,6 @@ export default {
152
152
</script >
153
153
154
154
<style scoped>
155
- .toast {
156
- opacity : 1 ;
157
- }
158
- .toast.full {
159
- max-width : 100% ;
160
- }
161
- .toast :last-child {
162
- margin-bottom : 0.75rem ;
163
- }
164
155
.fade-enter-active {
165
156
transition : opacity .5s ;
166
157
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default {
30
30
toasterClasses () {
31
31
return [
32
32
' toaster' ,
33
- { ' d-flex flex-column- reverse' : this .reverse }
33
+ { ' toaster- reverse' : ! this .reverse }
34
34
]
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exports[`CToast renders correctly 1`] = `
5
5
appear = " "
6
6
aria-atomic = " true"
7
7
aria-live = " assertive"
8
- class = " toast"
8
+ class = " toast show "
9
9
role = " alert"
10
10
style = " "
11
11
>
@@ -22,7 +22,7 @@ exports[`CToast renders correctly custom wrapper 1`] = `
22
22
appear = " "
23
23
aria-atomic = " true"
24
24
aria-live = " assertive"
25
- class = " toast"
25
+ class = " toast show "
26
26
name = " fade"
27
27
role = " alert"
28
28
style = " z-index: 1100; min-width: 350px; position: fixed; bottom: 0px; left: 50%; transform: translateX(-50%);"
Original file line number Diff line number Diff line change 2
2
3
3
exports [` CToaster renders correctly 1` ] = `
4
4
<div
5
- class = " toaster d-flex flex-column-reverse "
5
+ class = " toaster"
6
6
style = " z-index: 1100; min-width: 350px; position: fixed; top: 0px; right: 0px;"
7
7
/>
8
8
` ;
9
9
10
10
exports [` CToaster renders correctly custom wrapper 1` ] = `
11
11
<div
12
- class = " toaster d-flex flex-column-reverse "
12
+ class = " toaster"
13
13
style = " z-index: 1100; min-width: 350px; position: fixed; top: 0px; left: 0px;"
14
14
>
15
15
<div
16
16
appear = " "
17
17
aria-atomic = " true"
18
18
aria-live = " assertive"
19
- class = " toast"
19
+ class = " toast show "
20
20
role = " alert"
21
21
style = " "
22
22
>
You can’t perform that action at this time.
0 commit comments