From 862ce2eba54db0b4701f569e8d37888d0d2b1db2 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 10 Apr 2023 09:43:03 +0800 Subject: [PATCH] fix: fix hover style (#41685) * fix: fix hover style * fix * fix --- components/pagination/style/index.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/components/pagination/style/index.tsx b/components/pagination/style/index.tsx index c1e6078f9b6a..274c6ed5986a 100644 --- a/components/pagination/style/index.tsx +++ b/components/pagination/style/index.tsx @@ -98,13 +98,14 @@ const genPaginationDisabledStyle: GenerateStyle = (t [`${componentCls}-item-link`]: { color: token.colorTextDisabled, cursor: 'not-allowed', - '&:hover, &:active': { backgroundColor: 'transparent', }, - [`${componentCls}-simple&`]: { backgroundColor: 'transparent', + '&:hover, &:active': { + backgroundColor: 'transparent', + }, }, }, @@ -120,6 +121,15 @@ const genPaginationDisabledStyle: GenerateStyle = (t color: token.colorTextDisabled, }, }, + [`&${componentCls}-simple`]: { + [`${componentCls}-prev, ${componentCls}-next`]: { + [`&${componentCls}-disabled ${componentCls}-item-link`]: { + '&:hover, &:active': { + backgroundColor: 'transparent', + }, + }, + }, + }, }; }; @@ -224,7 +234,12 @@ const genPaginationSimpleStyle: GenerateStyle = (tok height: token.paginationItemSizeSM, backgroundColor: 'transparent', border: 0, - + '&:hover': { + backgroundColor: token.colorBgTextHover, + }, + '&:active': { + backgroundColor: token.colorBgTextActive, + }, '&::after': { height: token.paginationItemSizeSM, lineHeight: `${token.paginationItemSizeSM}px`,