responsive design on size prop
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, react
- Domain
- frontend
Research direction
Start by reproducing the provided Recaptcha usage with the size prop changing from compact to normal at a breakpoint. Inspect how the component handles size updates after initialization and confirm whether the widget changes size when isMobile updates; done means the responsive size behavior is defined and verified.
Written by the indexing model from the issue text.
Description
Hey there,
I have a reCaptcha element as below and have set a ternary condition in the size prop to change the size based on a breakpoint however it does not seem to re-render. The isMobile variable is definitely updating. Wondering if there is a particular way to handle this with react-recaptcha:
<Recaptcha
sitekey={process.env.GATSBY_GOOGLE_CAPTCHA_SITEKEY}
render="explicit"
size={isMobile ? 'compact' : 'normal'}
onloadCallback={recaptchaLoaded}
verifyCallback={recaptchaVerified}
expiredCallback={recaptchaReset}
/>
thanks for the great snippet!
- Dominant language
- JavaScript
- Stars
- 643
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from appleboy/react-recaptcha
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
appleboy/react-recaptcha#336 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
appleboy/react-recaptcha#319 · 3 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
appleboy/react-recaptcha#311 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
appleboy/react-recaptcha#274 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
appleboy/react-recaptcha#273 · 1 comment ·
All issues in appleboy/react-recaptcha
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·