fix: Anchor ink & track should use logical inset (#42706)

* fix: Anchor ink & track should use logical inset

* chore: remove skip check
pull/42718/head
未觉雨声 2 years ago committed by GitHub
parent 71836057d1
commit 51eaf402cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,10 +73,7 @@ const genSharedAnchorStyle: GenerateStyle<AnchorToken> = (token): CSSObject => {
[componentCls]: {
'&::before': {
position: 'absolute',
left: {
_skip_check_: true,
value: 0,
},
insetInlineStart: 0,
top: 0,
height: '100%',
borderInlineStart: `${lineWidthBold}px ${lineType} ${colorSplit}`,
@ -85,10 +82,7 @@ const genSharedAnchorStyle: GenerateStyle<AnchorToken> = (token): CSSObject => {
[`${componentCls}-ink`]: {
position: 'absolute',
left: {
_skip_check_: true,
value: 0,
},
insetInlineStart: 0,
display: 'none',
transform: 'translateY(-50%)',
transition: `top ${motionDurationSlow} ease-in-out`,

Loading…
Cancel
Save