From 51eaf402cbb6e50a39f8c02402c4b4448dc918de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AA=E8=A7=89=E9=9B=A8=E5=A3=B0?= <544022268@qq.com> Date: Tue, 30 May 2023 10:37:17 +0800 Subject: [PATCH] fix: Anchor ink & track should use logical inset (#42706) * fix: Anchor ink & track should use logical inset * chore: remove skip check --- components/anchor/style/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/anchor/style/index.ts b/components/anchor/style/index.ts index 6f9520da6d..4727387fca 100644 --- a/components/anchor/style/index.ts +++ b/components/anchor/style/index.ts @@ -73,10 +73,7 @@ const genSharedAnchorStyle: GenerateStyle = (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 = (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`,