Hey there, I'm currently working on implementing a floating placeholder for an input field. However, I'm facing an issue where I don't want to set the placeholder with a background color due to the varying input backgrounds and styles in my project. Is there a way to hide whatever is underneath the floating label in order to conceal the input line? https://i.sstatic.net/CbB9D5Lr.png
JSX
return (
<input
ref={inputRef}
className={classes.inputStyle}
value={startDate ? startDate.toDateString() : ""}
readOnly={!startDate}
required
/>
<label>{Label}</label>
CSS
.inputwrap input {
@include InputField(291px, 55px, 10px);
// more CSS code follows..
}
// More CSS code for label styling