Repository navigation
refactor(client): migrate button component in donation form - #52355
Merged
moT01 merged 3 commits intoNov 21, 2023
Merged
Conversation
Co-authored-by: Sboonny <[email protected]>
huyenltnguyen
force-pushed
the
refactor/button-migration-donation
branch
from
November 14, 2023 18:51
88d7796 to
e9de7c3
Compare
|
👀 Review this PR in a CodeSee Review Map |
huyenltnguyen
commented
Nov 15, 2023
huyenltnguyen
marked this pull request as ready for review
November 15, 2023 06:54
ahmaxed
approved these changes
Nov 20, 2023
ahmaxed
left a comment
Member
There was a problem hiding this comment.
Thanks for leaving comments on your pull request. Feel free to leave them for next reviewer.
4 tasks done
4 tasks done
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist:
mainbranch of freeCodeCamp.This PR:
The issue thread is quite long, so TL;DR: the styling of buttons in the donation form don't match
ui-components, so instead of replacing the BootstrapButtons with ours and risking CSS collisions, I'm temporarily swapping the buttons with the native<button>element to keep the migration moving. We will revisit the component library and clean these up once we know what to do with the one-off components in /learn.Notes for reviewers: I tend to talk a lot on PR, and it's not fair that you have to resolve my self-review comments. So just leave your approval if the PR looks good, I can clear those comments and merge the PR myself 🙂
Testing
showprop ofDonationModaltotrueso that the modal shows upfreeCodeCamp/client/src/components/Donation/donation-modal.tsx
Line 153 in 124bf14
components/Donation/donate-form.tsxto render the part that you want to testScreenshots
Desktop
Desktop screenshots
Mobile
I only checked if the buttons are still displayed properly here.
Mobile screenshots