MurhafSousli / ngx-sharebuttons

Angular Share Buttons ☂
https://ngx-sharebuttons.netlify.app/
MIT License
518 stars 124 forks source link

Required Old Twitter Logo Update | 'X' #657

Closed yuvrajsingh-kiwi closed 1 month ago

yuvrajsingh-kiwi commented 6 months ago

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-sharebuttons

Steps to reproduce:

  1. Just check the logo of the Twitter Share Button

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

AshotAleqsanyan96 commented 6 months 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.

MurhafSousli commented 6 months ago

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