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

Migrate MatomoOptOut to Shadcn #13961

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Migrate MatomoOptOut to Shadcn #13961

merged 2 commits into from
Sep 26, 2024

Conversation

minimalsm
Copy link
Contributor

@minimalsm minimalsm commented Sep 25, 2024

Description

Migrates MatomoOptOut component to ShadCN from Chakra

Note

As far as I can tell, the current border color for the box in Chakra theme (#e5e5e5) does not exist in DS/Tailwind theme. I've used body-light as the closest, but defer to @nloureiro here :)

image

Updated Note

Per @pettinarip's comment here, I've also stopped using the OldText component. This means the red color is slightly, though unrecognisably, different (now using error from tailwind config instead of the fail color in Chakra theme), and the margin bottom (was 1.45rem) is now 1.25rem per our scale.

Related Issue

#13946

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 73bf0a6
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66f41d6ed02a9600088660d9
😎 Deploy Preview https://deploy-preview-13961--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: 44 (🔴 down 2 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@minimalsm minimalsm mentioned this pull request Sep 25, 2024
39 tasks
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.

@minimalsm left a small req, the rest is ok 👍🏼

@@ -1,10 +1,11 @@
import { useEffect, useState } from "react"
import { Checkbox, Flex } from "@chakra-ui/react"

import Text from "@/components/OldText"
Copy link
Member

Choose a reason for hiding this comment

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

This one needs to be replaced by the native <p> tag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done and added note above.

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.

🚀 🚀 🚀 🚀

@pettinarip pettinarip merged commit 08ed23a into dev Sep 26, 2024
8 of 10 checks passed
@pettinarip pettinarip deleted the migrateMatomoOptOut branch September 26, 2024 10:03
@minimalsm minimalsm changed the title Migrate MatomoOptOut to ShadCN Migrate MatomoOptOut to Shadcn Sep 26, 2024
This was referenced Oct 2, 2024
@pettinarip pettinarip added the hacktoberfest Track hacktoberfest activity label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Track hacktoberfest activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants