Skip to content

Commit 88e44e6

Browse files
committed
fix(text-popup): [text-popup] update dark theme
1 parent e38973c commit 88e44e6

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

examples/sites/demos/pc/app/text-popup/clear-value-composition-api.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<div>value 值:{{ value }}</div>
44
<br />
55
<tiny-button @click="click">点击清除</tiny-button>
6+
<br />
7+
<br />
68
<tiny-text-popup v-model="value"></tiny-text-popup>
79
</div>
810
</template>

examples/sites/demos/pc/app/text-popup/clear-value.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<div>value 值:{{ value }}</div>
44
<br />
55
<tiny-button @click="click">点击清除</tiny-button>
6+
<br />
7+
<br />
68
<tiny-text-popup v-model="value"></tiny-text-popup>
79
</div>
810
</template>

packages/theme/src/text-popup/index.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@
3232
border-radius: var(--tv-TextPopup-border-radius, 2px);
3333
outline: none;
3434
box-sizing: border-box;
35+
background-color: var(--tv-TextPopup-bg-color);
36+
color: var(--tv-TextPopup-text-color);
3537
}
3638

3739
.text {
3840
border: 1px solid var(--tv-TextPopup-border-color);
3941
line-height: 1;
4042
height: var(--tv-TextPopup-height);
43+
background-color: var(--tv-TextPopup-bg-color);
44+
color: var(--tv-TextPopup-text-color);
4145

4246
&:hover {
4347
border-color: var(--tv-TextPopup-hover-border-color);

packages/theme/src/text-popup/vars.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
--tv-TextPopup-font-size: var(--tv-font-size-default);
2020
// 输入框边框色
2121
--tv-TextPopup-border-color: var(--tv-color-border);
22+
// 输入框边背景色
23+
--tv-TextPopup-bg-color: var(--tv-color-bg-secondary);
24+
// 输入框边文字颜色
25+
--tv-TextPopup-text-color: var(--tv-color-text);
2226
// 输入框聚焦展开时阴影
2327
--tv-TextPopup-box-shadow: var(--tv-shadow-1);
2428
// 输入框悬浮边框色

0 commit comments

Comments
 (0)