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
Refactor: Migrate StakingProductsCardGrid
to Chakra
#8679
Refactor: Migrate StakingProductsCardGrid
to Chakra
#8679
Conversation
✅ ethereum-org-website-dev deploy preview ready
|
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 looks great @TylerAPfledderer! left a comment.
maxH={24} | ||
> | ||
{!!Svg && <Icon as={Svg} fontSize="2rem" />} | ||
<Heading fontSize="2xl" color="white" fontWeight="normal"> |
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.
I think we want to keep the wider font style in here to keep the same styles we had before
<Heading fontSize="2xl" color="white" fontWeight="normal"> | |
<Heading fontSize="2xl" color="white"> |
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.
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.
Got it. Agreed, I can see a possible quick alteration with the grid to overcome this text wrapping, but it's definitely better with it's own PR and design team input.
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.
Change of font weight was not intended to fix the header height. I removed the fontWeight
prop.
} | ||
} | ||
|
||
const StakingPill: React.FC<{ type: string; children: ReactNode }> = ({ |
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.
Nice!
<ul> | ||
</Flex> | ||
<Box {...PADDED_DIV_STYLE} py={0}> | ||
<List m={0} gap={3}> |
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.
👍🏼
@@ -564,11 +538,16 @@ const StakingProductCardGrid: React.FC<IProps> = ({ category }) => { | |||
if (!rankedProducts) return null | |||
|
|||
return ( | |||
<CardGrid> | |||
<SimpleGrid |
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.
👍🏼
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! thanks @TylerAPfledderer
Description
Migrate the
StakingProductsCardGrid
component to Chakra UIRelated Issue
#8632