Skip to content

Commit 5febde2

Browse files
committed
fix(tag): update tag adapter dark mode
1 parent 3e36b0e commit 5febde2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

examples/sites/demos/pc/app/tag/color-border-composition-api.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { TinyTag } from '@opentiny/vue'
2121
</script>
2222

2323
<style scoped>
24-
.tiny-tag-demo > * {
25-
margin-bottom: 8px;
26-
margin-top: 8px;
24+
.tiny-tag-demo .tiny-tag {
25+
margin-right: 10px;
26+
margin-bottom: 10px;
2727
}
2828
</style>

examples/sites/demos/pc/app/tag/color-border.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
</script>
2828

2929
<style scoped>
30-
.tiny-tag-demo > * {
31-
margin-bottom: 8px;
32-
margin-top: 8px;
30+
.tiny-tag-demo .tiny-tag {
31+
margin-right: 10px;
32+
margin-bottom: 10px;
3333
}
3434
</style>

packages/theme/src/tag/vars.less

+5-5
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
// 默认标签plain的文本色
9292
--tv-Tag-text-color-plain: var(--tv-color-text);
9393
// 默认标签plain的背景色
94-
--tv-Tag-bg-color-plain: var(--tv-color-bg-secondary);
94+
--tv-Tag-bg-color-plain: transparent;
9595
// 默认标签plain的边框色
9696
--tv-Tag-border-color-plain: var(--tv-color-border-hover); // 没有正确的边框色
9797

@@ -110,7 +110,7 @@
110110
// success 主题时标签plain的文本色
111111
--tv-Tag-text-color-plain-success: var(--tv-color-success-text);
112112
// success 主题时标签plain的背景色
113-
--tv-Tag-bg-color-plain-success: var(--tv-color-success-text-white);
113+
--tv-Tag-bg-color-plain-success: transparent;
114114
// success 主题时标签plain的边框色
115115
--tv-Tag-border-color-plain-success: var(--tv-color-success-border);
116116

@@ -129,7 +129,7 @@
129129
// error 主题时标签plain的文本色
130130
--tv-Tag-text-color-plain-danger: var(--tv-color-error-text);
131131
// error 主题时标签plain的背景色
132-
--tv-Tag-bg-color-plain-danger: var(--tv-color-error-bg-white);
132+
--tv-Tag-bg-color-plain-danger: transparent;
133133
// error 主题时标签plain的边框色
134134
--tv-Tag-border-color-plain-danger: var(--tv-color-error-border);
135135

@@ -148,7 +148,7 @@
148148
// warning 主题时标签plain的文本色
149149
--tv-Tag-text-color-plain-warning: var(--tv-color-warn-text);
150150
// warning 主题时标签plain的背景色
151-
--tv-Tag-bg-color-plain-warning: var(--tv-color-warn-text-white);
151+
--tv-Tag-bg-color-plain-warning: transparent;
152152
// warning 主题时标签plain的边框色
153153
--tv-Tag-border-color-plain-warning: var(--tv-color-warn-border);
154154

@@ -167,7 +167,7 @@
167167
// info 主题时标签plain的文本色
168168
--tv-Tag-text-color-plain-info: var(--tv-color-info-text);
169169
// info 主题时标签plain的背景色
170-
--tv-Tag-bg-color-plain-info: var(--tv-color-info-bg-white);
170+
--tv-Tag-bg-color-plain-info: transparent;
171171
// info 主题时标签plain的边框色
172172
--tv-Tag-border-color-plain-info: var(--tv-color-info-border);
173173

0 commit comments

Comments
 (0)