Browse Source

feat(theme-shared): change icon color to severity color

related issue: #2537
pull/2606/head^2
TheDiaval 6 years ago
parent
commit
f0158d4d50
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/confirmation/confirmation.component.html
  2. 21
      npm/ng-packs/packages/theme-shared/src/lib/components/confirmation/confirmation.component.scss

2
npm/ng-packs/packages/theme-shared/src/lib/components/confirmation/confirmation.component.html

@ -1,7 +1,7 @@
<div class="confirmation show" *ngIf="visible">
<div class="confirmation-backdrop"></div>
<div class="confirmation-dialog">
<div class="icon-container">
<div class="icon-container" [ngClass]="data.severity" *ngIf="data.severity">
<i class="fa icon" [ngClass]="iconClass"></i>
</div>
<div class="content">

21
npm/ng-packs/packages/theme-shared/src/lib/components/confirmation/confirmation.component.scss

@ -40,8 +40,27 @@
width: 100px;
height: 100px;
stroke-width: 1;
stroke: #f89406;
fill: #fff;
font-size: 80px;
text-align: center;
}
&.neutral .icon {
}
&.info .icon {
stroke: #2f96b4;
color: #2f96b4;
}
&.success .icon {
stroke: #51a351;
color: #51a351;
}
&.warning .icon {
stroke: #f89406;
color: #f89406;
}
&.error .icon {
stroke: #bd362f;
color: #bd362f;
}
}
.content {

Loading…
Cancel
Save