-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin-ui): Support dynamic ltr/rtl on NotificationComponent
- Loading branch information
1 parent
bafb3fa
commit e7d3bc7
Showing
2 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
27 changes: 12 additions & 15 deletions
27
packages/admin-ui/src/lib/core/src/components/notification/notification.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
<div | ||
class="notification-wrapper" | ||
#wrapper | ||
[style.top.px]="offsetTop" | ||
[ngClass]="{ | ||
visible: isVisible, | ||
info: type === 'info', | ||
success: type === 'success', | ||
error: type === 'error', | ||
warning: type === 'warning' | ||
}" | ||
> | ||
<clr-icon [attr.shape]="getIcon()" size="24"></clr-icon> | ||
{{ stringifyMessage(message) | translate: translationVars }} | ||
</div> | ||
<div class="notification-wrapper" #wrapper [style.top.px]="offsetTop" [ngClass]="{ | ||
visible: isVisible, | ||
info: type === 'info', | ||
success: type === 'success', | ||
error: type === 'error', | ||
warning: type === 'warning' | ||
}"> | ||
<div [dir]="direction$ | async"> | ||
<clr-icon [attr.shape]="getIcon()" size="24"></clr-icon> | ||
{{ stringifyMessage(message) | translate: translationVars }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters