-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this 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 👍🏼
src/components/MatomoOptOut.tsx
Outdated
@@ -1,10 +1,11 @@ | |||
import { useEffect, useState } from "react" | |||
import { Checkbox, Flex } from "@chakra-ui/react" | |||
|
|||
import Text from "@/components/OldText" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀 🚀 🚀
Description
Migrates
MatomoOptOut
component to ShadCN from ChakraNote
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 :)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 usingerror
from tailwind config instead of thefail
color in Chakra theme), and the margin bottom (was 1.45rem) is now 1.25rem per our scale.Related Issue
#13946