-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the CardFixedContainer to not have padding on the bottom when it is not the last child so that the right spacing is provided when used in conjunction with an external CardFooterGroup - Updated the `Heading` fontSize to be reduced in blocks that follow the leading block - Added optional `className` props to the `CardFixedContainer`, `CardContentBlock`, and `CardFooterGroup` to allow for customization - Made the `children` prop of `CardContentBlock` optional to allow for cases where providing content via other props is sufficient
- Loading branch information
1 parent
eb17e31
commit 27ecc26
Showing
5 changed files
with
95 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@kadena/kode-ui': patch | ||
--- | ||
|
||
Updated the CardPattern component to allow for more flexible customization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
packages/libs/kode-ui/src/patterns/Card/CardFixedContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import cn from 'classnames'; | ||
import React from 'react'; | ||
import { Card } from '../../components'; | ||
import { container, paddingContainer } from './CardPattern.css'; | ||
|
||
export const CardFixedContainer = ({ | ||
className, | ||
children, | ||
}: { | ||
className?: string; | ||
children: React.ReactNode; | ||
}) => { | ||
return ( | ||
<div className={paddingContainer}> | ||
<Card className={container}>{children}</Card> | ||
<Card className={cn(container, className)}>{children}</Card> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters