fix: Fixed the issue of carousel dot being unclickable (#55757)

This commit is contained in:
Wanpan
2025-11-18 20:57:17 +08:00
committed by GitHub
parent 7aabe2a4fa
commit 4be4ba64a5

View File

@@ -233,10 +233,10 @@ const genDotsStyle: GenerateStyle<CarouselToken> = (token) => {
const animation = new Keyframes(`${token.prefixCls}-dot-animation`, {
from: {
transform: `translate3d(-100%, 0, 0)`,
width: 0,
},
to: {
transform: `translate3d(0%, 0, 0)`,
width: token.dotActiveWidth,
},
});
@@ -284,7 +284,7 @@ const genDotsStyle: GenerateStyle<CarouselToken> = (token) => {
position: 'absolute',
top: 0,
insetInlineStart: 0,
width: '100%',
width: 0,
height: dotHeight,
content: '""',
background: 'transparent',