Skip to content

Commit e57b667

Browse files
committed
refactor(calendar): [calendar] refactor theme vars
1 parent 7ffb106 commit e57b667

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/theme/src/calendar/index.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@popper-prefix-cls: ~'@{css-prefix}popper';
2121

2222
.@{calendar-prefix-cls} {
23-
.injiect-Calendar-vars();
23+
.inject-Calendar-vars();
2424

2525
background: var(--tv-Calendar-bg-color);
2626
overflow: hidden;
@@ -93,7 +93,7 @@
9393
&:active,
9494
&.active,
9595
&[active] {
96-
border: 1px solid #191919;
96+
border: 1px solid var(--tv-Calendar-input-hover-border-color);
9797
}
9898

9999
&[readonly] {

packages/theme/src/calendar/vars.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*/
1212

13-
.injiect-Calendar-vars() {
13+
.inject-Calendar-vars() {
1414
// 日历背景颜色
1515
--tv-Calendar-bg-color: var(--tv-color-bg-secondary);
1616
// 日历日期列表选中文字颜色
@@ -41,6 +41,8 @@
4141
--tv-Calendar-input-border-radius: var(--tv-border-radius-md);
4242
// 日历表头输入框字号
4343
--tv-Calendar-input-font-size: var(--tv-font-size-md);
44+
// 日历输入框hover边框色
45+
--tv-Calendar-input-hover-border-color:var(--tv-color-border-hover) ;
4446
// 日历列次悬浮背景色
4547
--tv-Calendar-list-item-hover-bg-color: var(--tv-color-bg-hover);
4648
// 日历列次悬选中景色

0 commit comments

Comments
 (0)