diff --git a/src/components/notification/notification.component.css b/src/components/notification/notification.component.css index cf24e66..4a21839 100644 --- a/src/components/notification/notification.component.css +++ b/src/components/notification/notification.component.css @@ -22,6 +22,7 @@ font-size: 20px; } + .simple-notification .sn-content { font-size: 16px; line-height: 20px; @@ -34,6 +35,11 @@ line-height: 20px; } +.simple-notification.has-icon .sn-title, +.simple-notification.has-icon .sn-content { + padding: 0 50px 0 0; +} + .simple-notification .icon { position: absolute; box-sizing: border-box; @@ -68,8 +74,8 @@ direction: rtl; } -.simple-notification.rtl-mode .sn-content { - padding: 0 0 0 50px; +.simple-notification.rtl-mode { + direction: rtl; } .simple-notification.rtl-mode svg { diff --git a/src/components/notification/notification.component.html b/src/components/notification/notification.component.html index 641c644..4d06b44 100644 --- a/src/components/notification/notification.component.html +++ b/src/components/notification/notification.component.html @@ -9,7 +9,8 @@ 'success': item.type === 'success', 'info': item.type === 'info', 'bare': item.type === 'bare', - 'rtl-mode': rtl + 'rtl-mode': rtl, + 'has-icon': item.icon || (item.icon && item.icon !== 'bare') }" (mouseenter)="onEnter()" (mouseleave)="onLeave()"> @@ -32,7 +33,7 @@
- +