diff --git a/components/tabs/demo/card-top.md b/components/tabs/demo/card-top.md index f4bb1ae7b3..43b6d81b5a 100644 --- a/components/tabs/demo/card-top.md +++ b/components/tabs/demo/card-top.md @@ -57,19 +57,18 @@ ReactDOM.render( .card-container > .ant-tabs-card > .ant-tabs-nav::before { display: none; } -.card-container > .ant-tabs-card .ant-tabs-tab { +.card-container > .ant-tabs-card .ant-tabs-tab, +[data-theme='compact'] .card-container > .ant-tabs-card .ant-tabs-tab { border-color: transparent; background: transparent; } -.card-container > .ant-tabs-card .ant-tabs-tab-active { +.card-container > .ant-tabs-card .ant-tabs-tab-active, +[data-theme='compact'] .card-container > .ant-tabs-card .ant-tabs-tab-active { border-color: #fff; background: #fff; } -``` - - +```