-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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: Using Icon + LoadingIcon removes common class #15736
Comments
Hi @luprobert. Thanks for report it! |
Hi @SoyDiego. The same thing happens regardless of the webfont used, for example with fontawesome: check stackblitz . Does your fix only apply to the primeng pi icons? |
Yes my solution is only applying for |
We should look for a more generic solution, the issue seems to be that common classes between [icon] and [loadingIcon] are removed from the first input. |
I tried a lot of things and I cannot yet. Maybe I will cancel my PR, maybe someone has a better solution |
@daniel1919-00 I think now I fixed. Now is adding the text that you write perfectly in your |
@SoyDiego Just tested it now using your PR with pictogrammers material design webfonts and it seems to be fixed 😄. Great work! |
great! thanks for testing it! Thanks again =) |
Describe the bug
When using both [icon] + [loadingIcon] somehow the common class name from icon is removed.
Environment
Firefox, Chrome, StackBlitz
Reproducer
https://stackblitz.com/edit/bh1tmu?file=src%2Fapp%2Fbutton-loading-demo.html
Angular version
17.3.7
PrimeNG version
17.17.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
21.7.1
Browser(s)
Firefox, Chrome
Steps to reproduce the behavior
loadingIcon="pi pi-home")
Expected behavior
Both icons should be rendered.
The text was updated successfully, but these errors were encountered: