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

Modified checkbox behaviour #45 #47

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Modified checkbox behaviour #45 #47

merged 2 commits into from
Aug 17, 2021

Conversation

RedFox0x20
Copy link
Collaborator

@RedFox0x20 RedFox0x20 commented Aug 16, 2021

This fixes an issue I recognised shortly after the previous PR was merged.

The checkbox behaviour was modified such that, when the Anyone in need option is selected, all other checkboxes will be checked. This prevents any messy donation messages, in addition to being more user-friendly. An additional class donate-form-checkbox was added to these elements to ensure future development of the site is not interfered with by these changes.

The checkbox behaviour was modified such that, when the `Anyone in need` option
is selected, all other checkboxes will be unchecked. This prevents any messy
donation messages, in addition to being more user-friendly.
@netlify
Copy link

netlify bot commented Aug 16, 2021

✔️ Deploy Preview for helpafamily-margarita-humanitarian ready!
Built without sensitive environment variables

🔨 Explore the source changes: 254da79

🔍 Inspect the deploy log: https://app.netlify.com/sites/helpafamily-margarita-humanitarian/deploys/611b710cb4b0cb00085023f7

😎 Browse the preview: https://deploy-preview-47--helpafamily-margarita-humanitarian.netlify.app

I added this comments while reviewing PR #47, to help myself understand
how MainDonationForm works.
@audreyfeldroy
Copy link
Member

@RedFox0x20 I appreciate your thoughtfulness in this PR so much! I added comments as I was reviewing this to help my understanding. Really excellent work. Thank you.

@audreyfeldroy
Copy link
Member

audreyfeldroy commented Aug 17, 2021

Hmm, in the Netlify deploy preview when I click "Donate", I get this error in the JS console upon submission:

Failed to load resource: the server responded with a status of 502 ()

This happens whether I toggle "Anyone in Need" on or off.

Looking into it...

@audreyfeldroy
Copy link
Member

I'll try submitting a different PR and see if the same error occurs. It might be related to our Netlify configuration, not to this PR.

@audreyfeldroy
Copy link
Member

I saw that a totally unrelated PR also has this form submission 502 error. So I think the error is unrelated to this PR, and I'll go ahead and merge this. Thanks again @RedFox0x20!

@audreyfeldroy audreyfeldroy merged commit 4d77cb7 into margaritahumanitarian:main Aug 17, 2021
@RedFox0x20 RedFox0x20 deleted the donation-form-tweaks branch August 17, 2021 09:12
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

Successfully merging this pull request may close these issues.

None yet

2 participants