Skip to content

Commit 99959f9

Browse files
feat(badge): [badge] Component dark theme adaptation (#2946)
* feat(badge): [badge] Component dark theme adaptation * feat(badge): [badge] Component dark theme adaptation
1 parent 37f3f45 commit 99959f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/theme/src/badge/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
vertical-align: baseline;
3434
white-space: nowrap;
3535
text-align: center;
36-
border: 1px solid #FFFFFF;
36+
border: 1px solid var(--tv-Badge-border-color);
3737
margin-left: var(--tv-Badge-margin-left);
3838

3939
&:empty {

packages/theme/src/badge/vars.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
--tv-Badge-text-color: var(--tv-color-text-inverse);
2424
// 标记的背景色
2525
--tv-Badge-bg-color: var(--tv-color-act-danger-bg);
26+
// 标记的边框色
27+
--tv-Badge-border-color: var(--tv-color-border-inverse-tint);
2628
// 标记a标签的文本及悬浮文本色
2729
--tv-Badge-a-text-color: var(--tv-color-text-inverse);
2830
// 标记左边距

0 commit comments

Comments
 (0)