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

[ShadCN]: Migrate CreateAccount Screen #14808

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

Conversation

TylerAPfledderer
Copy link
Contributor

@TylerAPfledderer TylerAPfledderer commented Feb 2, 2025

Description

Create stories and migrate components for the CreateAccount simulator screen to Tailwind/ShadCN

Copy link

netlify bot commented Feb 2, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit fbba1d2
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/67a6509a126e4e000887db5a
😎 Deploy Preview https://deploy-preview-14808--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 45 (🔴 down 9 from production)
Accessibility: 95 (🟢 up 3 from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@TylerAPfledderer TylerAPfledderer force-pushed the feat/shadcn-migrate-simulator-create-account-screen branch from 54fd7a7 to 34b2322 Compare February 3, 2025 04:59
@TylerAPfledderer TylerAPfledderer changed the title [WIP][ShadCN]: Migrate CreateAccount Screen [ShadCN]: Migrate CreateAccount Screen Feb 3, 2025
@TylerAPfledderer TylerAPfledderer marked this pull request as ready for review February 3, 2025 05:19
Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TylerAPfledderer 🚀

One minor overflow issue with the Next button:
image
similar issue in mobile:
image

>
<Spinner w={SPINNER_SIZE} h={SPINNER_SIZE} />
<Spinner className={SPINNER_SIZE} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker but we could set this size directly in the Spinner component as it default value/size

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pettinarip

Ok! Would need to check the other related instances this component is being used, because there is only one other place where this size is explicitly applied.

So, make a note to check it in a separate PR?

Comment on lines 17 to 18
"shadow-[0_0_7px_0_var(--eth-colors-blackAlpha-800)]",
"shadow-[0_0_7px_0_var(--eth-colors-whiteAlpha-800)]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets simplify this by using shadow-md

`}
transitionDelay={numToMsString(getDelayFromIndex(index))}
position="relative"
className={`[--display-delay:${numToMsString(getDelayFromIndex(index))}] delay-(--display-delay)`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

overflow="hidden"
w="full"
>
<div className="h-90 grid w-full grid-cols-4 gap-2 overflow-hidden whitespace-nowrap md:h-[152px]">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="h-90 grid w-full grid-cols-4 gap-2 overflow-hidden whitespace-nowrap md:h-[152px]">
<div className="h-[90px] grid w-full grid-cols-4 gap-2 overflow-hidden whitespace-nowrap md:h-[152px]">

@TylerAPfledderer
Copy link
Contributor Author

@pettinarip updated the stories to be better presentable, but running into that same Chromatic error that is present in the WalletHome PR. Still can't locate this error.

Once we can address this, I can then push that overflow fix so I can verify the change in Chromatic.

@pettinarip
Copy link
Member

@TylerAPfledderer there was a missing image that was breaking the dev branch fixed in #14837. Please update your branch

@TylerAPfledderer
Copy link
Contributor Author

@pettinarip updated!

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.

3 participants