From 21ae100240b6709ee9d26f60421579e28bdc20f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Sat, 4 Jan 2025 16:24:21 +0800 Subject: [PATCH] style: add disable style for inverse tag --- components/tag/style/presetCmp.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/tag/style/presetCmp.ts b/components/tag/style/presetCmp.ts index 25f69af051..500c6133f9 100644 --- a/components/tag/style/presetCmp.ts +++ b/components/tag/style/presetCmp.ts @@ -15,6 +15,12 @@ const genPresetStyle = (token: TagToken) => color: token.colorTextLightSolid, background: darkColor, borderColor: darkColor, + + [`&${token.componentCls}-disabled`]: { + color: token.colorTextDisabled, + backgroundColor: token.colorBgContainerDisabled, + borderColor: token.borderColorDisabled, + }, }, [`&${token.componentCls}-borderless`]: { borderColor: 'transparent',