Skip to content

Commit 6a67a9a

Browse files
authored
Merge pull request #320 from youda97/notification-icons
fix(notification): notification icons
2 parents 08c0d11 + 5f9d5c0 commit 6a67a9a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/notification/notification.component.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,23 @@ import { of } from "rxjs";
2323
selector: "ibm-notification",
2424
template: `
2525
<div class="bx--inline-notification__details">
26-
<svg class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
26+
<svg *ngIf="notificationObj.type === 'error'" class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16"
27+
xmlns="http://www.w3.org/2000/svg">
2728
<path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM3.293 4.707l8 8 1.414-1.414-8-8-1.414 1.414z" fill-rule="evenodd"/>
2829
</svg>
30+
<svg *ngIf="notificationObj.type === 'info'" class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16"
31+
xmlns="http://www.w3.org/2000/svg">
32+
<path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm1-3V7H7v6h2zM8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path>
33+
</svg>
34+
<svg *ngIf="notificationObj.type === 'success'" class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16"
35+
xmlns="http://www.w3.org/2000/svg">
36+
<path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm3.293-11.332L6.75 9.21 4.707 7.168 3.293 8.582 6.75 12.04l5.957-5.957-1.414-1.414z"></path>
37+
</svg>
38+
<svg *ngIf="notificationObj.type === 'warning'" class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16"
39+
xmlns="http://www.w3.org/2000/svg">
40+
<path d="M.75 16a.75.75 0 0 1-.67-1.085L7.33.415a.75.75 0 0 1 1.34 0l7.25 14.5A.75.75 0 0 1 15.25 16H.75zm6.5-10v5h1.5V6h-1.5zM8
41+
13.5A.75.75 0 1 0 8 12a.75.75 0 0 0 0 1.5z"></path>
42+
</svg>
2943
<div class="bx--inline-notification__text-wrapper">
3044
<p [innerHTML]="notificationObj.title" class="bx--inline-notification__title"></p>
3145
<p [innerHTML]="notificationObj.message" class="bx--inline-notification__subtitle"></p>

0 commit comments

Comments
 (0)