fix: use before to avoid conflict with primary basic animation effect (#39241)

This commit is contained in:
Yuki Zhang 2022-12-05 17:26:32 +08:00 committed by GitHub
parent 80f167e5f2
commit 8afc84480d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ const genSharedButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (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<ButtonToken, CSSObject> = (token): CSS
'&:not([disabled]) + &:not([disabled])': {
position: 'relative',
'&:after': {
'&:before': {
position: 'absolute',
top: -token.lineWidth,
insetInlineStart: -token.lineWidth,