javascriptreactjssdksnapchat

How can i change font color for a snapchat login button after click on it?


I use the official login button example from snapchat kit

After clicking on the login button, the span element with text is deleted.

What should I change in my code to see span text even after clicking on the login button?

My code example is here codesandbox


Solution

  • I have fixed this with ::before element

    .snapchat-login-button button {
      animation: none;
    
      &::before {
        content: "Button text is here"
      }
    }
    
    .snapchat-login-button span {
      padding-left: 0;
      display: none;
    }