New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button with empty label and text shows "ui-button" #1657
Comments
Hi, It's the default label value of p-button.If you describe a label="" like this it will show default value.If you dont want anything to write just delete label property. |
You should do that via css you can take look at ultima-ng |
Hi!, I have a similar issue when I try to interpolate a label value, in older releases I don't have this problem. This is my code:
And this is my button: Only if I put the label directly it works. |
I have no label but it is still showing ui-button as a text. angular: 2.4.4 |
If you are using angular.cli try this: In angular-cli.json file insert a style.css in this order
After this, recompile the project. Style css file insert this:
Button config in html:
Worked for me, I hope this can help someone. |
Label is empty when using |
**I'm submitting a bug report.
Plunkr Case (Bug Reports)
http://plnkr.co/edit/Vtp8OTakHAekaZOc6kUl?p=preview
Current behavior
I have a button with no label and no further content (only want to show its icon):
<button pButton id="menuButtonWeights" type="button" label="" icon="fa-balance-scale" class="ui-button-secondary"></button>
The button shows the text "ui-button" right to the icon.
Expected behavior
Only the icon should be visible, thus the text "ui-button" should not occur.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
I only need a button with an icon and w/o text.
Please tell us about your environment:
PrimeNG 1.1.1, Angular 2.4.0
Angular version: 2.0.X
2.4.0
PrimeNG version: 2.0.X
PrimeNG 1.1.1
All browsers
The text was updated successfully, but these errors were encountered: