From ad70505a109016e1970bcdd45cff327982913fa4 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 18 Jul 2024 10:56:57 +0800 Subject: [PATCH] fix: Pagination token.itemBg not working (#49933) --- components/pagination/demo/component-token.tsx | 2 +- components/pagination/style/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/pagination/demo/component-token.tsx b/components/pagination/demo/component-token.tsx index d2827b6ad0..fe72c62607 100644 --- a/components/pagination/demo/component-token.tsx +++ b/components/pagination/demo/component-token.tsx @@ -23,7 +23,7 @@ const App: React.FC = () => ( itemActiveBgDisabled: '#9c1515', itemInputBg: '#9c1515', miniOptionsSizeChangerTop: 0, - itemBg: '#333', + itemBg: '#b5f5ec', }, }, }} diff --git a/components/pagination/style/index.ts b/components/pagination/style/index.ts index 00ffadaba7..e091dcc330 100644 --- a/components/pagination/style/index.ts +++ b/components/pagination/style/index.ts @@ -514,7 +514,7 @@ const genPaginationItemStyle: GenerateStyle = (token textAlign: 'center', verticalAlign: 'middle', listStyle: 'none', - backgroundColor: 'transparent', + backgroundColor: token.itemBg, border: `${unit(token.lineWidth)} ${token.lineType} transparent`, borderRadius: token.borderRadius, outline: 0,