Skip to content

Commit 577feb3

Browse files
committed
Input ready to accept visible hint
1 parent 22a8f43 commit 577feb3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/input/theme.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@
5353
}
5454

5555
& ~ .hint {
56+
display: block;
5657
opacity: var(--input-hint-opacity);
5758
}
5859

5960
& ~ .icon {
6061
color: var(--input-text-highlight-color);
6162
}
63+
64+
&.filled ~ .hint {
65+
opacity: 0;
66+
}
6267
}
6368

6469
&:focus:not([disabled]):not([readonly]),
@@ -99,7 +104,7 @@
99104
font-size: var(--input-field-font-size);
100105
left: 0;
101106
line-height: var(--input-field-font-size);
102-
opacity: 0;
107+
opacity: var(--input-hint-opacity);
103108
pointer-events: none;
104109
position: absolute;
105110
top: calc(var(--input-padding) + 1.5 * var(--input-field-padding));

0 commit comments

Comments
 (0)