Skip to content

Commit

Permalink
refactor(calendar): [calendar] refactor theme vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Youyou-smiles committed Oct 21, 2024
1 parent 7ffb106 commit e57b667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/theme/src/calendar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@popper-prefix-cls: ~'@{css-prefix}popper';

.@{calendar-prefix-cls} {
.injiect-Calendar-vars();
.inject-Calendar-vars();

background: var(--tv-Calendar-bg-color);
overflow: hidden;
Expand Down Expand Up @@ -93,7 +93,7 @@
&:active,
&.active,
&[active] {
border: 1px solid #191919;
border: 1px solid var(--tv-Calendar-input-hover-border-color);
}

&[readonly] {
Expand Down
4 changes: 3 additions & 1 deletion packages/theme/src/calendar/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

.injiect-Calendar-vars() {
.inject-Calendar-vars() {
// 日历背景颜色
--tv-Calendar-bg-color: var(--tv-color-bg-secondary);
// 日历日期列表选中文字颜色
Expand Down Expand Up @@ -41,6 +41,8 @@
--tv-Calendar-input-border-radius: var(--tv-border-radius-md);
// 日历表头输入框字号
--tv-Calendar-input-font-size: var(--tv-font-size-md);
// 日历输入框hover边框色
--tv-Calendar-input-hover-border-color:var(--tv-color-border-hover) ;
// 日历列次悬浮背景色
--tv-Calendar-list-item-hover-bg-color: var(--tv-color-bg-hover);
// 日历列次悬选中景色
Expand Down

0 comments on commit e57b667

Please sign in to comment.