Skip to content

Commit

Permalink
improve(design): small Card head padding-top with tabs set to 8px
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Nov 11, 2024
1 parent 4871c60 commit 2d5b986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/design/src/card/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export const genCardStyle: GenerateStyle<CardToken> = (token: CardToken): CSSObj
padding: `0 ${paddingSM}px ${paddingSM}px ${paddingSM}px`,
},
},
[`${componentCls}-small${componentCls}-contain-tabs >${componentCls}-head`]: {
[`${componentCls}-head-title, ${componentCls}-head-extra`]: {
paddingTop: token.paddingXS,
},
},
[`${componentCls}${componentCls}-contain-tabs`]: {
[`${componentCls}-head`]: genTagStyle({
...token,
Expand Down
4 changes: 2 additions & 2 deletions packages/design/src/switch/demo/size.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Switch } from '@oceanbase/design';

const App: React.FC = () => (
<>
<Switch defaultChecked />
<Switch />
<br />
<Switch defaultChecked size="small" />
<Switch size="small" />
</>
);

Expand Down

0 comments on commit 2d5b986

Please sign in to comment.