From 39f0f93d02c023ffecaeaa3473df947ef6bef78b Mon Sep 17 00:00:00 2001 From: zhanyini Date: Mon, 25 Nov 2024 15:20:24 -0800 Subject: [PATCH] feat(old-theme): [dropdown,grid,tree] modify incorrect css vars --- packages/theme/src/dropdown/index.less | 1 + packages/theme/src/grid/vars.less | 2 +- packages/theme/src/tree/vars.less | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/theme/src/dropdown/index.less b/packages/theme/src/dropdown/index.less index ee581e34d2..0d61d95580 100644 --- a/packages/theme/src/dropdown/index.less +++ b/packages/theme/src/dropdown/index.less @@ -75,6 +75,7 @@ padding: var(--tv-Dropdown-title-button-padding); border-right: none; border-radius: var(--tv-Dropdown-title-button-border-radius); + min-width: auto; } .@{dropdown-prefix-cls}__caret-button { diff --git a/packages/theme/src/grid/vars.less b/packages/theme/src/grid/vars.less index 75b09a5d35..4399852e91 100644 --- a/packages/theme/src/grid/vars.less +++ b/packages/theme/src/grid/vars.less @@ -46,7 +46,7 @@ // 表格激活态背景色 --tv-Grid-bg-color-active: var(--tv-color-bg-active); // 表格悬浮背景色 - --tv-Grid-bg-color-hover: var(--tv-color-bg); + --tv-Grid-bg-color-hover: var(--tv-color-bg-hover); // 表格禁用背景色 --tv-Grid-bg-color-disabled: var(--tv-color-bg-disabled); // 表格选中背景色 diff --git a/packages/theme/src/tree/vars.less b/packages/theme/src/tree/vars.less index 5f22feacf7..35010fd4fa 100644 --- a/packages/theme/src/tree/vars.less +++ b/packages/theme/src/tree/vars.less @@ -34,7 +34,7 @@ // 选中节点背景色 --tv-Tree-node-content-current-bg-color: var(--tv-color-bg-secondary, #ffffff); // 节点悬浮背景色 - --tv-Tree-node-content-hover-bg-color: var(--tv-color-bg, #f5f5f5); + --tv-Tree-node-content-hover-bg-color: var(--tv-color-bg-hover, #f5f5f5); // 节点字号 --tv-Tree-node-label-font-size: var(--tv-font-size-default, 14px); // 节点内容左边距