From a953da70a4c69d8edd58897ab22c62c4e7c422ce Mon Sep 17 00:00:00 2001 From: James-9696 Date: Mon, 3 Mar 2025 00:35:22 -0800 Subject: [PATCH 1/2] fix: modify color theme variables --- packages/theme/src/carousel/vars.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/theme/src/carousel/vars.less b/packages/theme/src/carousel/vars.less index e472be0492..7743c1623d 100644 --- a/packages/theme/src/carousel/vars.less +++ b/packages/theme/src/carousel/vars.less @@ -32,7 +32,7 @@ // 幻灯片内的悬浮指示器图标色 --tv-Carousel-indicator-hover-text-color: var(--tv-color-icon-hover); // 非当前指示器背景色 - --tv-Carousel-indicator-button-bg-color: var(--tv-color-bg-gray-2); + --tv-Carousel-indicator-button-bg-color: var(--tv-color-bg-5); // 当前指示器右边距 --tv-Carousel-indicator-active-width: 12px; // 当前指示器背景色 @@ -44,7 +44,7 @@ // 幻灯片外的指示器默认背景色 --tv-Carousel-outside-button-bg-color: #000; // 幻灯片外的当前指示器背景色 - --tv-Carousel-outside-button-active-bg-color: var(--tv-color-bg-hover-primary); + --tv-Carousel-outside-button-active-bg-color: var(--tv-color-bg-5-active); // 标签按钮的字号 --tv-Carousel-labels-button-font-size: var(--tv-font-size-default); // 箭头悬浮文本颜色 From c89ca96005eddac02a852cb653c25274b30a17b9 Mon Sep 17 00:00:00 2001 From: James-9696 Date: Mon, 3 Mar 2025 01:52:15 -0800 Subject: [PATCH 2/2] fix: revise inspection comments --- packages/theme/src/carousel/index.less | 2 +- packages/theme/src/carousel/vars.less | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/theme/src/carousel/index.less b/packages/theme/src/carousel/index.less index 3728f6f060..07d5340e36 100644 --- a/packages/theme/src/carousel/index.less +++ b/packages/theme/src/carousel/index.less @@ -153,7 +153,7 @@ transition-property: none; transition-timing-function: cubic-bezier(0.16, 0.75, 0.5, 1); border-radius: var(--tv-Carousel-indicator-active-border-radius); - background-color: var(--tv-Carousel-indicator-active-text-color); + background-color: var(--tv-Carousel-outside-button-active-bg-color); width: var(--tv-Carousel-indicator-active-button-width); } diff --git a/packages/theme/src/carousel/vars.less b/packages/theme/src/carousel/vars.less index 7743c1623d..12539ab105 100644 --- a/packages/theme/src/carousel/vars.less +++ b/packages/theme/src/carousel/vars.less @@ -36,13 +36,13 @@ // 当前指示器右边距 --tv-Carousel-indicator-active-width: 12px; // 当前指示器背景色 - --tv-Carousel-indicator-active-background-color: var(--tv-color-bg-hover-primary); + --tv-Carousel-indicator-active-background-color: var(--tv-color-bg-5-active); // 当前指示器的宽度 --tv-Carousel-indicator-active-button-width: 12px; // 当前指示器圆角 --tv-Carousel-indicator-active-border-radius: var(--tv-border-radius-sm); // 幻灯片外的指示器默认背景色 - --tv-Carousel-outside-button-bg-color: #000; + --tv-Carousel-outside-button-bg-color: var(--tv-color-bg-5); // 幻灯片外的当前指示器背景色 --tv-Carousel-outside-button-active-bg-color: var(--tv-color-bg-5-active); // 标签按钮的字号