Skip to content

Commit 1d42970

Browse files
authored
fix(carousel): [carousel] modify color theme variables (#2999)
* fix: modify color theme variables * fix: revise inspection comments
1 parent 2c30b32 commit 1d42970

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/theme/src/carousel/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
transition-property: none;
154154
transition-timing-function: cubic-bezier(0.16, 0.75, 0.5, 1);
155155
border-radius: var(--tv-Carousel-indicator-active-border-radius);
156-
background-color: var(--tv-Carousel-indicator-active-text-color);
156+
background-color: var(--tv-Carousel-outside-button-active-bg-color);
157157
width: var(--tv-Carousel-indicator-active-button-width);
158158
}
159159

packages/theme/src/carousel/vars.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
// 幻灯片内的悬浮指示器图标色
3333
--tv-Carousel-indicator-hover-text-color: var(--tv-color-icon-hover);
3434
// 非当前指示器背景色
35-
--tv-Carousel-indicator-button-bg-color: var(--tv-color-bg-gray-2);
35+
--tv-Carousel-indicator-button-bg-color: var(--tv-color-bg-5);
3636
// 当前指示器右边距
3737
--tv-Carousel-indicator-active-width: 12px;
3838
// 当前指示器背景色
39-
--tv-Carousel-indicator-active-background-color: var(--tv-color-bg-hover-primary);
39+
--tv-Carousel-indicator-active-background-color: var(--tv-color-bg-5-active);
4040
// 当前指示器的宽度
4141
--tv-Carousel-indicator-active-button-width: 12px;
4242
// 当前指示器圆角
4343
--tv-Carousel-indicator-active-border-radius: var(--tv-border-radius-sm);
4444
// 幻灯片外的指示器默认背景色
45-
--tv-Carousel-outside-button-bg-color: #000;
45+
--tv-Carousel-outside-button-bg-color: var(--tv-color-bg-5);
4646
// 幻灯片外的当前指示器背景色
47-
--tv-Carousel-outside-button-active-bg-color: var(--tv-color-bg-hover-primary);
47+
--tv-Carousel-outside-button-active-bg-color: var(--tv-color-bg-5-active);
4848
// 标签按钮的字号
4949
--tv-Carousel-labels-button-font-size: var(--tv-font-size-default);
5050
// 箭头悬浮文本颜色

0 commit comments

Comments
 (0)