Skip to content

Commit

Permalink
🎬 update card demo
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 28, 2020
1 parent 56c42e4 commit e3ac222
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
5 changes: 0 additions & 5 deletions components/card/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,6 @@ exports[`renders ./components/card/demo/inner.md correctly 1`] = `
<div
class="ant-card-body"
>
<p
class="site-card-demo-inner-p"
>
Group title
</p>
<div
class="ant-card ant-card-bordered ant-card-type-inner"
>
Expand Down
16 changes: 0 additions & 16 deletions components/card/demo/inner.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { Card } from 'antd';

ReactDOM.render(
<Card title="Card title">
<p className="site-card-demo-inner-p">Group title</p>
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
Inner Card content
</Card>
Expand All @@ -34,18 +33,3 @@ ReactDOM.render(
mountNode,
);
```

```css
.site-card-demo-inner-p {
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
margin-bottom: 16px;
font-weight: 500;
}
```

<style>
[data-theme="dark"] .site-card-demo-inner-p {
color: rgba(255,255,255,.85);
}
</style>

0 comments on commit e3ac222

Please sign in to comment.