Skip to content

Commit

Permalink
fix: fix hover style (ant-design#41685)
Browse files Browse the repository at this point in the history
* fix: fix hover style

* fix

* fix
  • Loading branch information
li-jia-nan authored Apr 10, 2023
1 parent 117203b commit 862ce2e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions components/pagination/style/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@ const genPaginationDisabledStyle: GenerateStyle<PaginationToken, CSSObject> = (t
[`${componentCls}-item-link`]: {
color: token.colorTextDisabled,
cursor: 'not-allowed',

'&:hover, &:active': {
backgroundColor: 'transparent',
},

[`${componentCls}-simple&`]: {
backgroundColor: 'transparent',
'&:hover, &:active': {
backgroundColor: 'transparent',
},
},
},

Expand All @@ -120,6 +121,15 @@ const genPaginationDisabledStyle: GenerateStyle<PaginationToken, CSSObject> = (t
color: token.colorTextDisabled,
},
},
[`&${componentCls}-simple`]: {
[`${componentCls}-prev, ${componentCls}-next`]: {
[`&${componentCls}-disabled ${componentCls}-item-link`]: {
'&:hover, &:active': {
backgroundColor: 'transparent',
},
},
},
},
};
};

Expand Down Expand Up @@ -224,7 +234,12 @@ const genPaginationSimpleStyle: GenerateStyle<PaginationToken, CSSObject> = (tok
height: token.paginationItemSizeSM,
backgroundColor: 'transparent',
border: 0,

'&:hover': {
backgroundColor: token.colorBgTextHover,
},
'&:active': {
backgroundColor: token.colorBgTextActive,
},
'&::after': {
height: token.paginationItemSizeSM,
lineHeight: `${token.paginationItemSizeSM}px`,
Expand Down

0 comments on commit 862ce2e

Please sign in to comment.