File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed
uui-toast-notification-layout/lib
uui-toast-notification/lib Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,13 @@ export class UUIToastNotificationLayoutElement extends LitElement {
15
15
static styles = [
16
16
UUITextStyles ,
17
17
css `
18
- #message > h5 {
18
+ #message {
19
+ margin-bottom: calc(var(--uui-size-space-1) * -1);
20
+ }
21
+ #message::after {
22
+ content: '';
23
+ display: block;
24
+ clear: both;
19
25
}
20
26
#actions {
21
27
/*
@@ -26,15 +32,9 @@ export class UUIToastNotificationLayoutElement extends LitElement {
26
32
display: block;
27
33
float: right;
28
34
29
- margin-top: var(--uui-size-space-3 );
35
+ margin-top: var(--uui-size-space-4 );
30
36
margin-bottom: calc(var(--uui-size-space-2) * -1);
31
37
}
32
-
33
- #message::after {
34
- content: '';
35
- display: block;
36
- clear: both;
37
- }
38
38
` ,
39
39
] ;
40
40
@@ -59,7 +59,8 @@ export class UUIToastNotificationLayoutElement extends LitElement {
59
59
return html `
60
60
< div id ="message " class ="uui-text ">
61
61
< h5
62
- style =${ this . _headlineSlotHasContent || this . headline !== null
62
+ style =${ this . _headlineSlotHasContent ||
63
+ ( this . headline && this . headline !== '' )
63
64
? ''
64
65
: 'display: none' } >
65
66
${ this . headline }
Original file line number Diff line number Diff line change @@ -84,10 +84,9 @@ export class UUIToastNotificationElement extends LitElement {
84
84
85
85
#close {
86
86
float: right;
87
- margin-top: -7px ;
87
+ margin-top: -6px ;
88
88
margin-left: var(--uui-size-space-1);
89
- margin-bottom: calc(var(--uui-size-space-2) * -1);
90
- margin-bottom: var(--uui-size-space-1);
89
+ margin-bottom: -4px;
91
90
}
92
91
93
92
#close > uui-button {
Original file line number Diff line number Diff line change @@ -42,14 +42,15 @@ AAAOverview.parameters = {
42
42
export const ErrorStyle : Story = props => html `< uui-toast-notification
43
43
.open =${ props . open }
44
44
.look =${ props . look } >
45
- < uui-toast-notification-layout headline ="Document could not be published! ">
46
- An error occurred while attempting to contact the server. Please check your
47
- internet connection.
45
+ < uui-toast-notification-layout .headline =${ props . headline } >
46
+ ${ props . message }
48
47
< uui-button slot ="actions " look ="danger "> Retry</ uui-button >
49
48
</ uui-toast-notification-layout >
50
49
</ uui-toast-notification > `;
51
50
ErrorStyle . args = {
52
51
headline : 'Document could not be published!' ,
52
+ message :
53
+ 'An error occurred while attempting to contact the server. Please check your internet connection.' ,
53
54
look : 'danger' ,
54
55
} ;
55
56
ErrorStyle . parameters = {
@@ -70,12 +71,13 @@ export const PositiveStyle: Story = props => html`<uui-toast-notification
70
71
.open =${ props . open }
71
72
.look =${ props . look } >
72
73
< uui-toast-notification-layout .headline =${ props . headline } >
73
- < p > This document is now saved and published. </ p >
74
+ ${ props . message }
74
75
< uui-button slot ="actions " .look =${ props . look } > View in browser</ uui-button >
75
76
</ uui-toast-notification-layout >
76
77
</ uui-toast-notification > `;
77
78
PositiveStyle . args = {
78
79
headline : 'Document was published' ,
80
+ message : 'This document is now saved and published.' ,
79
81
look : 'positive' ,
80
82
} ;
81
83
PositiveStyle . parameters = {
You can’t perform that action at this time.
0 commit comments