Fix button icon margin
This commit is contained in:
parent
60ab5b99c7
commit
db129781ca
3 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<span class="action-button" [ngClass]="getClasses()" [ngbTooltip]="title" tabindex="0">
|
||||
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>
|
||||
<my-small-loader [loading]="loading"></my-small-loader>
|
||||
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>
|
||||
|
||||
<span *ngIf="label" class="button-label">{{ label }}</span>
|
||||
|
||||
|
|
|
@ -34,6 +34,12 @@ span[class$=-button] {
|
|||
@include button-with-icon(21px);
|
||||
|
||||
width: 100%; // useful for ellipsis, allow to define a max-width on host component
|
||||
|
||||
&.icon-only {
|
||||
my-global-icon {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.orange-button {
|
||||
|
|
|
@ -20,6 +20,7 @@ export class ButtonComponent {
|
|||
return {
|
||||
[this.className]: true,
|
||||
disabled: this.disabled,
|
||||
'icon-only': !this.label,
|
||||
'responsive-label': this.responsiveLabel
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue