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
Problem using slotted icons using ionic 4 #10
Comments
@fmendoza are you using v3.0.1? could I checkout your projet to give it a try?
just work fine for me |
@fmendoza maybe I noticed something, config isn't an array but an object respectively the input property
the following
|
I just tried your suggestion and it seems it works with the first icon but the second still have the style issue. I deployed a branch with the issue, you can test it here: https://stoic-saha-5ff1aa.netlify.com/1/home/places/1RkEDawEws/lavo-nightclub Just be sure to turn on emulation mode because I use another package to show the share buttons on desktop. |
@fmendoza could you show me your current configuration's code? It seems the problem isn't the icon but rather that the second button aka second sub-component isn't added respectively I found only one Furthermore that sub-component got a style class "facebook" and "twitter", like if both config where provided for the same node... |
I'm using the following config: public webSocialShare: { show: boolean, config: any, onClosed: any } = {
show: false,
config: {
config: [{
facebook: {
socialShareUrl: 'https://fluster.io',
},
twitter: {
socialShareUrl: 'https://fluster.io',
}
}]
},
onClosed: () => {
this.webSocialShare.show = false;
}
}; template: <web-social-share
(closed)="webSocialShare.onClosed()"
[show]="webSocialShare.show"
[share]="webSocialShare.config">
<ion-icon name="logo-facebook" style="font-size:48px" slot="facebook"></ion-icon>
<ion-icon name="logo-twitter" style="font-size:48px" slot="twitter"></ion-icon>
</web-social-share> |
@fmendoza it's late here, I think there is a typo in your config. I'll try/test tomorrow and ping you afterwards 😉 |
Damn I think my brain is not working after a week of full coding 😂 You're right let's review tomorrow. |
@fmendoza I tried your config and I think it's effectively the config which isn't correct, each social target should be contained in its particular object and not one object containing all social target
could you try (I also suggest to rename the variable config):
|
That was it! 👍 Problem solved :) |
Coolio @fmendoza 👍 Ping me for any questions, issues or features requests |
Hi there,
I followed the instructions for Ionic 4 but still I can't get the ionicons show correctly. Any advice?
Code:
Template:
The text was updated successfully, but these errors were encountered: