Skip to content

Commit f28fd42

Browse files
authored
fix:暗色主题适配 (#3238)
1 parent c1abbc8 commit f28fd42

File tree

5 files changed

+29
-24
lines changed

5 files changed

+29
-24
lines changed

packages/theme/src/input/index.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,14 @@
303303
align-items: center;
304304

305305
svg {
306+
cursor: pointer;
306307
width: 16px;
307308
height: 16px;
309+
fill: var(--tv-Input-icon-color);
310+
311+
&:hover {
312+
fill: var(--tv-Input-icon-color-hover);
313+
}
308314
}
309315
}
310316

packages/theme/src/steps/index.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@
380380
margin-right: 12px;
381381

382382
.icon {
383-
width: var(--tv-Steps-node-circle-size);
384-
height: var(--tv-Steps-node-circle-size);
383+
width: var(--tv-Steps-node-circle-size-lg);
384+
height: var(--tv-Steps-node-circle-size-lg);
385385
}
386386
}
387387
}
@@ -482,6 +482,7 @@
482482
.@{steps-prefix-cls}-main {
483483
display: flex;
484484
align-items: center;
485+
height: var(--tv-Steps-node-circle-size-lg);
485486
}
486487
}
487488

@@ -700,6 +701,7 @@
700701
margin-left: var(--tv-Steps-text-margin-left);
701702
font-weight: 500;
702703
padding-top: 2px;
704+
line-height: 1.5;
703705
overflow: hidden;
704706
display: -webkit-box;
705707
-webkit-box-orient: vertical;
@@ -821,7 +823,7 @@
821823
}
822824

823825
&.large {
824-
.block-size-mixin(32px, 16px, 18px, 16px, 32px, 12px);
826+
.block-size-mixin(40px, 16px, 26px, 16px, 40px, 12px);
825827
}
826828
}
827829

packages/theme/src/steps/vars.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
--tv-Steps-disabled-icon-color: var(--tv-color-text-disabled, #c2c2c2);
2222
// 描述信息文本色
2323
--tv-Steps-node-desc-text-color: var(--tv-color-text-weaken, #808080);
24-
// 节点圆圈尺寸
24+
// 节点圆圈尺寸-中
2525
--tv-Steps-node-circle-size: var(--tv-size-height-md, 32px);
26+
// 节点圆圈尺寸-large
27+
--tv-Steps-node-circle-size-lg: var(--tv-size-height-lg, 40px);
2628
// 已完成节点边框色
2729
--tv-Steps-node-done-border-color: var(--tv-color-border-active, #191919);
2830
// 已完成节点背景色
Lines changed: 15 additions & 16 deletions
Loading

packages/theme/src/upload-list/index.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@
290290
color: var(--tv-UploadList-item-fail-text-color);
291291
}
292292

293-
&__text-desc {
294-
padding-top: 4px;
295-
}
296-
297293
&__icon-operationfaild {
298294
fill: #f23030;
299295
margin-right: 8px;

0 commit comments

Comments
 (0)