Skip to content

Commit

Permalink
fix(comp:pagination): change lg size font size to fontSizeSm (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Dec 11, 2023
1 parent 48f0394 commit 076d924
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/pagination/theme/default.ts
Expand Up @@ -11,14 +11,14 @@ export function getDefaultThemeTokens(
algorithms: ThemeTokenAlgorithms,
): CertainThemeTokens<'pagination'> {
const { getColorPalette } = algorithms
const { colorPrimary, fontSizeSm, fontSizeMd, paddingSizeXs, heightSm, heightMd } = tokens
const { colorPrimary, fontSizeSm, paddingSizeXs, heightSm, heightMd } = tokens

const primaryColorPalette = getColorPalette(colorPrimary)

return {
fontSizeSm: fontSizeSm,
fontSizeMd: fontSizeSm,
fontSizeLg: fontSizeMd,
fontSizeLg: fontSizeSm,

itmePaddingSm: 0,
itemPaddingMd: paddingSizeXs,
Expand Down
30 changes: 30 additions & 0 deletions packages/components/pagination/theme/tokens.ts
Expand Up @@ -6,17 +6,47 @@
*/

export interface PaginationThemeTokens {
/**
* @desc sm 尺寸下分页器字体大小
*/
fontSizeSm: number
/**
* @desc md 尺寸下分页器字体大小
*/
fontSizeMd: number
/**
* @desc lg 尺寸下分页器字体大小
*/
fontSizeLg: number

/**
* @desc sm 尺寸下分页器padding
*/
itmePaddingSm: string | number
/**
* @desc md 尺寸下分页器padding
*/
itemPaddingMd: string | number
/**
* @desc lg 尺寸下分页器padding
*/
itemPaddingLg: string | number

/**
* @desc sm 尺寸下分页器内容尺寸(按钮)
*/
itemContentSizeSm: number
/**
* @desc md 尺寸下分页器内容尺寸(按钮)
*/
itemContentSizeMd: number
/**
* @desc lg 尺寸下分页器内容尺寸(按钮)
*/
itemContentSizeLg: number

/**
* @desc 分页项选中时的外边框颜色
*/
outLineColor: string
}

0 comments on commit 076d924

Please sign in to comment.