Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comp:pagination): change lg size font size to fontSizeSm #1761

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/pagination/theme/default.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
}