Skip to content

Commit

Permalink
Merge pull request #821 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
improve(design): small Card head padding-top with tabs set to 8px
  • Loading branch information
dengfuping authored Nov 11, 2024
2 parents 9c7667a + 2d5b986 commit c93dc8f
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 c93dc8f

Please sign in to comment.