-
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
[ShadCN] refactor(mdComponents): convert components to ShadCN #13620
[ShadCN] refactor(mdComponents): convert components to ShadCN #13620
Conversation
✅ Deploy Preview for ethereumorg canceled.
|
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.
Great job @TylerAPfledderer, I left some comments.
I'm going to check some custom/old colors we use here with Nuno to see if we can replace them with a DS color.
export const commonHeadingAttributes = (className: string, id?: string) => ({ | ||
id, | ||
className: cn( | ||
"font-bold leading-xs my-8", |
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.
We will need this as important to avoid being overridden by the global heading sizes
"font-bold leading-xs my-8", | |
"font-bold !leading-xs my-8", |
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.
@pettinarip doing this will override the leading for smaller screen sizes, such as what is used in the h2 for the Docs layout as discussed 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.
@TylerAPfledderer good job! everything looks good from my side.
I will block this PR until #13821 is merged since we want to QA this PR with the latest color changes.
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.
LGTM!
Description
Converts components in
MdComponents
to ShadCN/Tailwind. Also creates a story set.Closes #13047