Skip to content

Commit

Permalink
Merge pull request #932 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
improve(design): large and small Tabs tab padding
  • Loading branch information
dengfuping authored Jan 14, 2025
2 parents ab16fb0 + 5d3fc0a commit 395b6dc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/design/src/tabs/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ export const genTagStyle: GenerateStyle<TabsToken | CardToken> = (
borderRadius: '1px',
},
},
[`${componentCls}:not(${componentCls}-card)`]: {
[`&${componentCls}-top, &${componentCls}-bottom`]: {
[`${componentCls}-nav`]: {
[`${componentCls}-tab`]: {
padding: `${token.paddingXS}px 0px`,
},
},
[`&${componentCls}-small`]: {
[`${componentCls}-nav`]: {
[`${componentCls}-tab`]: {
padding: `${token.paddingXS - token.lineWidth * 2}px 0px`,
},
},
},
},
},
};
};

Expand Down

0 comments on commit 395b6dc

Please sign in to comment.