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 migration - alert #13617

Merged
merged 4 commits into from
Aug 19, 2024
Merged

Shadcn migration - alert #13617

merged 4 commits into from
Aug 19, 2024

Conversation

pettinarip
Copy link
Member

Description

Adds the new shadcn Alert component.

Copy link

netlify bot commented Aug 9, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit d5ee22b
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66bdf2a1244e4100089d1413
😎 Deploy Preview https://deploy-preview-13617--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: 42 (🔴 down 6 from production)
Accessibility: 93 (no change from production)
Best Practices: 83 (🔴 down 14 from production)
SEO: 93 (🟢 up 1 from production)
PWA: -
View the detailed breakdown and full score reports

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

@pettinarip pettinarip added the needs design approval 🧑‍🎨 Approval from a designer is needed before merging label Aug 13, 2024
@pettinarip
Copy link
Member Author

@nloureiro tagging you since this needs design review.

@nloureiro
Copy link
Contributor

@pettinarip this one is for the alerts on top?
Screen Shot 2024-08-14 12 17 18 AM

like this one?
https://deploy-preview-13617--ethereumorg.netlify.app/en/community/events/

@pettinarip
Copy link
Member Author

@pettinarip this one is for the alerts on top? Screen Shot 2024-08-14 12 17 18 AM

like this one? https://deploy-preview-13617--ethereumorg.netlify.app/en/community/events/

No, we are not currently using them on prod. You can see them only on Chromatic/Storybook for now. You can see them on the UI tests check or in this link for the Storybook instance for this build.

@nloureiro
Copy link
Contributor

nloureiro commented Aug 15, 2024

All looks good on my end. they look even better

Just one question: why the <pre> on the text for alert success and error
Screen Shot 2024-08-15 09 06 03 AM

@pettinarip
Copy link
Member Author

pettinarip commented Aug 15, 2024

@nloureiro

All looks good on my end. they look even better

Great! will approve the UI tests for now then and mark this PR ready for review soon.

Just one question: why the

Ah hahaha, I don't know, was me doing silly things. Wanted to highlight the code name for each variant. Will remove the pre tag.

@pettinarip pettinarip marked this pull request as ready for review August 15, 2024 12:21
Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Very nice 💪 Looks great! Definitely an improvement for this component

--error-light: var(--error-light);
--error: var(--red-500);
--error-light: var(--red-100);
--error-outline: var(--error);
Copy link
Member

Choose a reason for hiding this comment

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

Curious the reason for the -outline token variants?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm good call, we are not using it, right? I guess the idea was to use this color as the border color. I missed that.

{...props}
>
<MdClose className="h-6 w-6" />
<span className="sr-only">Close</span>
Copy link
Member

Choose a reason for hiding this comment

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

Nice (ref for anyone else: https://tailwindcss.com/docs/screen-readers)

@wackerow wackerow merged commit b5df8b6 into dev Aug 19, 2024
11 checks passed
@wackerow wackerow deleted the shadcn-alert branch August 19, 2024 21:28
This was referenced Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs design approval 🧑‍🎨 Approval from a designer is needed before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants