Skip to content

Commit

Permalink
Merge branch 'main' into chore/table-sticky-scrollbar-sticky-columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Rúben Carvalho authored Aug 8, 2023
2 parents 05e7f77 + d87a49a commit efd35fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion pages/cards/permutations.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ function createSimpleItems(count: number) {
}

const cardDefinition: CardsProps.CardDefinition<Item> = {
header: item => (item.number === 2 ? <Link href="#">{item.text}</Link> : item.text),
header: item =>
item.number === 2 ? (
<Link href="#" fontSize="inherit">
{item.text}
</Link>
) : (
item.text
),
sections: [
{
id: 'description',
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/documenter.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3587,7 +3587,7 @@ add a meaningful description to the whole selection.",
Object {
"description": " Defines what to display in each card. It has the following properties:
* \`header\` ((item) => ReactNode) - Responsible for displaying the card header. You receive the current item as an argument.
Use \`fontSize=\\"heading-m\\"\` on [link](/components/link/) components inside card header.
Use \`fontSize=\\"inherit\\"\` on [link](/components/link/) components inside card header.
* \`sections\` (array) - Responsible for displaying the card content. Cards can have many sections in their
body. Each entry in the array is responsible for displaying a section. An entry has the following properties:
* \`id\`: (string) - A unique identifier for the section. The property is used as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys)
Expand Down
2 changes: 1 addition & 1 deletion src/cards/interfaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface CardsProps<T = any> extends BaseComponentProps {
/**
* Defines what to display in each card. It has the following properties:
* * `header` ((item) => ReactNode) - Responsible for displaying the card header. You receive the current item as an argument.
* Use `fontSize="heading-m"` on [link](/components/link/) components inside card header.
* Use `fontSize="inherit"` on [link](/components/link/) components inside card header.
* * `sections` (array) - Responsible for displaying the card content. Cards can have many sections in their
* body. Each entry in the array is responsible for displaying a section. An entry has the following properties:
* * `id`: (string) - A unique identifier for the section. The property is used as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys)
Expand Down

0 comments on commit efd35fe

Please sign in to comment.