Skip to content

Commit

Permalink
Fixed #1657
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Nov 23, 2017
1 parent 8524fb6 commit cc13e74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/components/button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
padding: .25em 1em;
}

.ui-button-icon-only .ui-button-text {
.ui-button-icon-only .ui-button-text,
.ui-button-text-empty .ui-button-text {
padding: .25em;
text-indent: -9999999px;
}
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export class Button implements AfterViewInit, OnDestroy {
}
}
else {
styleClass = styleClass + ' ui-button-text-only';
if(this.label) {
styleClass = styleClass + ' ui-button-text-only';
}
else {
styleClass = styleClass + ' ui-button-text-empty';
}
}

return styleClass;
Expand Down

0 comments on commit cc13e74

Please sign in to comment.