diff --git a/components/anchor/style/index.ts b/components/anchor/style/index.ts index 191a21f26c..6f9520da6d 100644 --- a/components/anchor/style/index.ts +++ b/components/anchor/style/index.ts @@ -69,7 +69,7 @@ const genSharedAnchorStyle: GenerateStyle = (token): CSSObject => { }, }, - [`&:not(${componentCls}-horizontal)`]: { + [`&:not(${componentCls}-wrapper-horizontal)`]: { [componentCls]: { '&::before': { position: 'absolute',