We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e236a4 commit 0fc10e3Copy full SHA for 0fc10e3
1 file changed
src/editor/inputs/subblocks/function.vue
@@ -1,6 +1,8 @@
1
<template>
2
<div class="filled-textfield" :class="{ focus: isFocus }">
3
- <label :class="{ lifted: !isEmpty }">{{ props.label }}</label>
+ <label :class="{ lifted: !isEmpty }">{{
4
+ isEmpty ? props.label : value
5
+ }}</label>
6
<input
7
@focus="isFocus = true"
8
@blur="isFocus = false"
@@ -62,7 +64,7 @@ watch(value, refreshInput);
62
64
caret-color: var(--s-color-primary);
63
65
line-height: 1.2;
66
z-index: 1;
- color: var(--s-color);
67
+ color: transparent;
68
}
69
label {
70
color: var(--s-color-outline);
@@ -77,7 +79,7 @@ watch(value, refreshInput);
77
79
transform: translateY(-0.05em);
78
80
81
label.lifted {
- opacity: 0;
82
+ color: var(--s-color);
83
84
85
</style>
0 commit comments