diff --git a/components/button/style/index.tsx b/components/button/style/index.tsx index 077e7ec35f..4a33aad712 100644 --- a/components/button/style/index.tsx +++ b/components/button/style/index.tsx @@ -62,7 +62,7 @@ const genSharedButtonStyle: GenerateStyle = (token): CSS '&:not([disabled]) + &:not([disabled])': { position: 'relative', - '&:after': { + '&:before': { position: 'absolute', top: -token.lineWidth, insetInlineStart: -token.lineWidth, @@ -80,7 +80,7 @@ const genSharedButtonStyle: GenerateStyle = (token): CSS '&:not([disabled]) + &:not([disabled])': { position: 'relative', - '&:after': { + '&:before': { position: 'absolute', top: -token.lineWidth, insetInlineStart: -token.lineWidth,