Certificate management alert icons implementation and alignment
- Replaces background image icons with icon directive
- Sizes and aligns icons in certificate table
TODO:
- Remove critical icon background image in separate commit
Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com>
Change-Id: I2e10bc3f3432331b6dd9354dbcd0e32480894ece
diff --git a/app/common/directives/certificate.html b/app/common/directives/certificate.html
index 2b7d9b7..1a7d091 100644
--- a/app/common/directives/certificate.html
+++ b/app/common/directives/certificate.html
@@ -24,8 +24,16 @@
Valid until:
</div>
<div class="certificate__status-cell">
- <span class="inline" ng-class="{'icon__warning certificate__table__icon' : cert.isExpiring , 'icon__critical certificate__table__icon' : cert.isExpired}"
- ng-if="cert.isExpired || cert.isExpiring"></span>
+ <icon file="icon-critical.svg"
+ aria-label="certificate has expired"
+ class="certificate__status-icon"
+ ng-if="cert.isExpired">
+ </icon>
+ <icon file="icon-warning.svg"
+ aria-label="certificate will expire soon"
+ class="certificate__status-icon"
+ ng-if="cert.isExpiring">
+ </icon>
</div>
<div class="certificate__date-cell">
{{cert.ValidNotAfter | date:medium}}