mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +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`, {
|
const animation = new Keyframes(`${token.prefixCls}-dot-animation`, {
|
||||||
from: {
|
from: {
|
||||||
transform: `translate3d(-100%, 0, 0)`,
|
width: 0,
|
||||||
},
|
},
|
||||||
to: {
|
to: {
|
||||||
transform: `translate3d(0%, 0, 0)`,
|
width: token.dotActiveWidth,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ const genDotsStyle: GenerateStyle<CarouselToken> = (token) => {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
insetInlineStart: 0,
|
insetInlineStart: 0,
|
||||||
width: '100%',
|
width: 0,
|
||||||
height: dotHeight,
|
height: dotHeight,
|
||||||
content: '""',
|
content: '""',
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
|
|||||||
Reference in New Issue
Block a user