Skip to content
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

Text is invisible on mobile phone #32

Open
rampatra opened this issue Mar 9, 2024 · 2 comments
Open

Text is invisible on mobile phone #32

rampatra opened this issue Mar 9, 2024 · 2 comments

Comments

@rampatra
Copy link

rampatra commented Mar 9, 2024

IMG_2168
Text becomes invisible in iPhone as shown above. It's fine on desktop browsers though.

Workaround for now:

<FloatingWhatsApp 
        accountName='ABC'
        phoneNumber='1234567890'
        style={{color: '#111111'}}    // <----- override color here
/>
@rampatra
Copy link
Author

rampatra commented Mar 9, 2024

This maybe again happening due to styles clashing and, if this is the case, we can resolve this in a couple of ways:

  • Add !important to all css styles you have defined.
  • Provide override ability for all the elements like you have for the main div and main whatsapp button.
  • Wrap your React component in a secluded style context to prevent such a clash.

@JuanPabloDiaz
Copy link

JuanPabloDiaz commented Jul 15, 2024

I had the same issue in light mode. But I fix it by wrapping the component in a div and adding css styles to the div as you suggested @rampatra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants