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

How to give z-index CSS property to the provider? #111

Open
AliBahaari opened this issue Dec 1, 2021 · 3 comments
Open

How to give z-index CSS property to the provider? #111

AliBahaari opened this issue Dec 1, 2021 · 3 comments

Comments

@AliBahaari
Copy link

AliBahaari commented Dec 1, 2021

Hello, as you know there is a GoogleReCaptchaProvider within the package.
In a project, it's needed to apply a z-index CSS property for arranging layers of objects.
I wrote the code below:

<GoogleReCaptchaProvider reCaptchaKey="..." style={{zIndex: 20000}}>
    <App />
</GoogleReCaptchaProvider>

But nothing happens at all.
What's the solution?

@julianshowshappening
Copy link

julianshowshappening commented Jan 12, 2022

I also wish to do this from my end. I don't believe GoogleReCaptchaProvider has support for styles at the moment but I wish it was integrated.

@alipiry
Copy link

alipiry commented Jan 13, 2022

Hello, as you know there is a GoogleReCaptchaProvider within the package. In a project, it's needed to apply a z-index CSS property for arranging layers of objects. I wrote the code below:

<GoogleReCaptchaProvider reCaptchaKey="..." style={{zIndex: 20000}}>
    <App />
</GoogleReCaptchaProvider>

But nothing happens at all. What's the solution?

Add these lines of code to your css:

div.grecaptcha-badge {
  z-index: 99999;
}

@AliBahaari
Copy link
Author

Hello, as you know there is a GoogleReCaptchaProvider within the package. In a project, it's needed to apply a z-index CSS property for arranging layers of objects. I wrote the code below:

<GoogleReCaptchaProvider reCaptchaKey="..." style={{zIndex: 20000}}>
    <App />
</GoogleReCaptchaProvider>

But nothing happens at all. What's the solution?

Add these lines of code to your css:

div.grecaptcha-badge {
  z-index: 99999;
}

Thanks!

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

3 participants