Skip to content
Advertisement

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

Advertisement

Answer

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;
}
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement