All files / element-ng/icon si-icon-legacy.component.html

100% Statements 6/6
83.33% Branches 5/6
100% Functions 0/0
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 146x 6x         6x 2x   2x     6x  
<span
  [class]="`d-inline-block position-relative ${icon() ?? ''} ${color() ?? ''} ${size()}`"
  [attr.aria-label]="altText() ? (altText() | translate) : null"
  [attr.aria-hidden]="!altText()"
  [attr.role]="altText() ? 'img' : 'presentation'"
>
  @if (stackedIcon()) {
    <i
      aria-hidden="true"
      [class]="`position-absolute start-0 ${stackedIcon()} ${stackedColor() ?? ''}`"
    ></i>
  }
</span>