Skip to content

Commit

Permalink
fix(button): fix iconAddonAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
abalad committed Jul 29, 2019
1 parent 4d14b8f commit 6790740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/truly-ui/src/components/button/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<tl-icon *ngIf="iconAfterText">{{ iconAfterText }}</tl-icon>
</div>
<tl-icon *ngIf="iconAddonAfter"
[style.color]="colorIconAfter"
[class]="color + ' iconAddonAfter'"
[ngStyle]="{'line-height': 'calc(' + height + ' - 1px)'}">{{ iconAddonAfter }}
[ngStyle]="{'line-height': 'calc(' + height + ' - 1px)'}"
[style.color]="colorIconAfter">{{ iconAddonAfter }}
</tl-icon>
</ng-template>

4 changes: 1 addition & 3 deletions projects/truly-ui/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@ $button-text-align: center;
padding: 0;
margin: 0;
outline: none;
display: inline-block;
display: flex;
cursor: pointer;
box-sizing: border-box;

> .iconAddonBefore {
box-sizing: border-box;
float: left;
padding: 0 15px;
pointer-events: none;
}
> .iconAddonAfter {
box-sizing: border-box;
float: right;
padding: 0 15px;
pointer-events: none;
}
Expand Down

0 comments on commit 6790740

Please sign in to comment.