@@ -57,7 +57,16 @@ const genPaginationDisabledStyle: GenerateStyle<PaginationToken, CSSObject> = to
57
57
58
58
[ `&${ componentCls } -disabled` ] : {
59
59
cursor : 'not-allowed' ,
60
-
60
+ [ `&${ componentCls } -mini` ] : {
61
+ [ `
62
+ &:hover ${ componentCls } -item:not(${ componentCls } -item-active),
63
+ &:active ${ componentCls } -item:not(${ componentCls } -item-active),
64
+ &:hover ${ componentCls } -item-link,
65
+ &:active ${ componentCls } -item-link
66
+ ` ] : {
67
+ backgroundColor : 'transparent' ,
68
+ } ,
69
+ } ,
61
70
[ `${ componentCls } -item` ] : {
62
71
cursor : 'not-allowed' ,
63
72
@@ -89,26 +98,38 @@ const genPaginationDisabledStyle: GenerateStyle<PaginationToken, CSSObject> = to
89
98
[ `${ componentCls } -item-link` ] : {
90
99
color : token . colorTextDisabled ,
91
100
cursor : 'not-allowed' ,
92
-
93
101
'&:hover, &:active' : {
94
102
backgroundColor : 'transparent' ,
95
103
} ,
96
-
97
104
[ `${ componentCls } -simple&` ] : {
98
105
backgroundColor : 'transparent' ,
106
+ '&:hover, &:active' : {
107
+ backgroundColor : 'transparent' ,
108
+ } ,
99
109
} ,
100
110
} ,
101
111
102
- [ `${ componentCls } -item-link-icon ` ] : {
103
- opacity : 0 ,
112
+ [ `${ componentCls } -simple-pager ` ] : {
113
+ color : token . colorTextDisabled ,
104
114
} ,
105
115
106
- [ `${ componentCls } -item-ellipsis` ] : {
107
- opacity : 1 ,
108
- } ,
116
+ [ `${ componentCls } -jump-prev, ${ componentCls } -jump-next` ] : {
117
+ [ `${ componentCls } -item-link-icon` ] : {
118
+ opacity : 0 ,
119
+ } ,
109
120
110
- [ `${ componentCls } -simple-pager` ] : {
111
- color : token . colorTextDisabled ,
121
+ [ `${ componentCls } -item-ellipsis` ] : {
122
+ opacity : 1 ,
123
+ } ,
124
+ } ,
125
+ } ,
126
+ [ `&${ componentCls } -simple` ] : {
127
+ [ `${ componentCls } -prev, ${ componentCls } -next` ] : {
128
+ [ `&${ componentCls } -disabled ${ componentCls } -item-link` ] : {
129
+ '&:hover, &:active' : {
130
+ backgroundColor : 'transparent' ,
131
+ } ,
132
+ } ,
112
133
} ,
113
134
} ,
114
135
} ;
@@ -134,13 +155,28 @@ const genPaginationMiniStyle: GenerateStyle<PaginationToken, CSSObject> = token
134
155
[ `&${ componentCls } -mini ${ componentCls } -item:not(${ componentCls } -item-active)` ] : {
135
156
backgroundColor : 'transparent' ,
136
157
borderColor : 'transparent' ,
158
+ '&:hover' : {
159
+ backgroundColor : token . colorBgTextHover ,
160
+ } ,
161
+ '&:active' : {
162
+ backgroundColor : token . colorBgTextActive ,
163
+ } ,
137
164
} ,
138
165
139
166
[ `&${ componentCls } -mini ${ componentCls } -prev, &${ componentCls } -mini ${ componentCls } -next` ] : {
140
167
minWidth : token . paginationItemSizeSM ,
141
168
height : token . paginationItemSizeSM ,
142
169
margin : 0 ,
143
170
lineHeight : `${ token . paginationItemSizeSM } px` ,
171
+ [ `&:hover ${ componentCls } -item-link` ] : {
172
+ backgroundColor : token . colorBgTextHover ,
173
+ } ,
174
+ [ `&:active ${ componentCls } -item-link` ] : {
175
+ backgroundColor : token . colorBgTextActive ,
176
+ } ,
177
+ [ `&${ componentCls } -disabled:hover ${ componentCls } -item-link` ] : {
178
+ backgroundColor : 'transparent' ,
179
+ } ,
144
180
} ,
145
181
146
182
[ `
@@ -200,7 +236,12 @@ const genPaginationSimpleStyle: GenerateStyle<PaginationToken, CSSObject> = toke
200
236
height : token . paginationItemSizeSM ,
201
237
backgroundColor : 'transparent' ,
202
238
border : 0 ,
203
-
239
+ '&:hover' : {
240
+ backgroundColor : token . colorBgTextHover ,
241
+ } ,
242
+ '&:active' : {
243
+ backgroundColor : token . colorBgTextActive ,
244
+ } ,
204
245
'&::after' : {
205
246
height : token . paginationItemSizeSM ,
206
247
lineHeight : `${ token . paginationItemSizeSM } px` ,
0 commit comments