mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-08 18:39:20 +08:00
fix: Fixed the issue of carousel dot being unclickable (#55757)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user