Skip to content

Commit

Permalink
Add color for an inner card
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoha committed Jan 30, 2025
1 parent f615414 commit b771a7a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/card/Card.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
border-bottom: none;
}
}

.ant-card-type-inner {
background-color: var(--j2-color-bg-layout);
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,19 @@ export const Borderless: Story = {
bordered: false,
},
}

export const Inner: Story = {
args: {
...Default.args,
type: 'inner',
title: 'Innie',
children: <p>I'm an innie</p>,
},
render: (args) => {
return (
<Card title="Outie">
<Card {...args} />
</Card>
)
},
}

0 comments on commit b771a7a

Please sign in to comment.