Skip to content

Commit 9260e2d

Browse files
Can-Chenafc163
andauthored
fix: table pagination theme color broken with small size (ant-design#52829)
* fix: table pagination theme color broken with small size * Update components/pagination/style/index.ts Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
1 parent 7e25343 commit 9260e2d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

components/pagination/style/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ const genPaginationDisabledStyle: GenerateStyle<PaginationToken, CSSObject> = (t
139139
cursor: 'not-allowed',
140140
[`${componentCls}-item`]: {
141141
cursor: 'not-allowed',
142+
backgroundColor: 'transparent',
142143

143144
'&:hover, &:active': {
144145
backgroundColor: 'transparent',
@@ -222,18 +223,6 @@ const genPaginationMiniStyle: GenerateStyle<PaginationToken, CSSObject> = (token
222223
lineHeight: unit(token.calc(token.itemSizeSM).sub(2).equal()),
223224
},
224225

225-
[`&${componentCls}-mini:not(${componentCls}-disabled) ${componentCls}-item:not(${componentCls}-item-active)`]:
226-
{
227-
backgroundColor: 'transparent',
228-
borderColor: 'transparent',
229-
'&:hover': {
230-
backgroundColor: token.colorBgTextHover,
231-
},
232-
'&:active': {
233-
backgroundColor: token.colorBgTextActive,
234-
},
235-
},
236-
237226
[`&${componentCls}-mini ${componentCls}-prev, &${componentCls}-mini ${componentCls}-next`]: {
238227
minWidth: token.itemSizeSM,
239228
height: token.itemSizeSM,

0 commit comments

Comments
 (0)