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

Contact Heading and Contact Form Refactor #168

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from

Conversation

Wayne-Jones
Copy link

@Wayne-Jones Wayne-Jones commented Oct 7, 2023

Description

With the removal of ChakraUI coming soon, I've refactored components that were on the Contact Heading Page and Contact Form Page to utilize tailwind classes for styling. Since these same components exist on other pages, I've also made sure that I wasn't impacting the other pages and any additional attributes that was added on the pages were accounted for. For example, the Button component can be displayed as a <a> or a <button> and the DefaultText component can be a <p> or a <span>.

The following components have been refactored as a result.

  • Button
  • TextInput
  • TextBox
  • DefaultText
  • HeaderText
  • DefaultButton
  • Spinner

Some of the components have default styling hardcoding that I took from the ChakraUI component's attributes (matched it as best as I could either using the direct values or using a tailwind class that was close in value). This could be changed or removed at a later time.

Note: This branch branches off of branch 133-set-up-shadcn. I will make sure that this branch is kept up to date with that parent branch. But regardless PR #164 will have to be merged into dev before this branch can be merged.

Related Issue

Resolves: #134

Motivation and Context

Change is required due to the removal/deprecation of ChakraUI for this project.

How Has This Been Tested?

I tested visually through making sure the styling of the previous components matches exactly or closest to the old ChakraUI styling via tailwind classes. And went through to double check other pages that utilize the components that were refactored to make sure there weren't any styling or type issues.

Screenshots (if appropriate):

Incompatibility

The Spinner Component doesn't have an equivalent component in ShadCN UI's library. I created a customized solution for the spinner that could work. This could be replaced at a later time should a ShadCN UI equivalent come out.

Future Considerations

Some future considerations of refactoring, some which have been mentioned in #138

@vercel
Copy link

vercel bot commented Oct 7, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @TechIsHiring on Vercel.

@TechIsHiring first needs to authorize it.

@Wayne-Jones
Copy link
Author

@chadstewart Almost done with this PR. I've noted a few things including no current replacement for the Spinner Component in the ShadCN UI. Is there an alternative that you were thinking for this?

@Wayne-Jones Wayne-Jones marked this pull request as ready for review November 18, 2023 05:57
@Wayne-Jones
Copy link
Author

@chadstewart Almost done with this PR. I've noted a few things including no current replacement for the Spinner Component in the ShadCN UI. Is there an alternative that you were thinking for this?

@chadstewart I created a custom spinner component in the meantime that could take it's place. This should be good to go and ready for review.

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.

[Feature]: Replace Chakra UI elements with Tailwind CSS in Contact Us Page
2 participants