Closed yuvrajsingh-kiwi closed 1 month ago
@yuvrajsingh-kiwi please check https://github.com/MurhafSousli/ngx-sharebuttons/issues/650 they already have a PR, we are also waiting for this change.
I will make the change but it may take sometime, but you don't need to wait! you can change the icon from the global options like so:
import { faXTwitter } from '@fortawesome/free-brands-svg-icons';
import { FaIconLibrary, } from '@fortawesome/angular-fontawesome';
@NgModule({
imports: [
ShareButtonsModule.withConfig({
prop: {
twitter: {
icon: ['fab', 'x-twitter'],
color: '#1E3050',
}
}
})
],
})
export class AppModule {
constructor(iconLibrary: FaIconLibrary) {
iconLibrary.addIcons(faXTwitter);
}
}
Here is a stackblitz: https://stackblitz.com/edit/ngx-sharebuttons-6hfmg3?file=src%2Fapp%2Fapp.module.ts
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-sharebuttons
Steps to reproduce:
Expected Behavior
What behavior were you expecting to see? New Logo Of Twitter 'X'
Actual Behavior
What behavior did you actually see? Old Logo Of Twitter Button
Environment