diff --git a/components/tag/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/tag/__tests__/__snapshots__/demo-extend.test.ts.snap index a3774e3660..ab20964533 100644 --- a/components/tag/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/tag/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -316,6 +316,46 @@ Array [ class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; margin-bottom: -8px;" > +
+ + processing + +
+
+ + success + +
+
+ + error + +
+
+ + warning + +
+
+ + processing + +
+
+ + success + +
+
+ + error + +
+
+ + warning + +
( + + processing + + + success + + + error + + + warning + magenta diff --git a/components/tag/style/index.ts b/components/tag/style/index.ts index a32820545b..e73c36d651 100644 --- a/components/tag/style/index.ts +++ b/components/tag/style/index.ts @@ -32,6 +32,9 @@ const genTagStatusStyle = ( color: token[`color${cssVariableType}`], background: token[`color${capitalizedCssVariableType}Bg`], borderColor: token[`color${capitalizedCssVariableType}Border`], + [`&${token.componentCls}-borderless`]: { + borderColor: 'transparent', + }, }, }; };