Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Placeholder color

Open andreaguru opened this issue 5 years ago • 12 comments

Hi Robin, I know that the topic has been discussed some years ago, but currently I am still facing this issue: how can I change the color of the placeholder? I do not see the option colormask anymore in the code.

Thanks

andreaguru avatar Apr 17 '20 08:04 andreaguru

@andreaguru ,

The option is removed. When there is enough interest, I can add the option back at a later time.

RobinHerbots avatar Apr 20 '20 20:04 RobinHerbots

ok, thanks. I would like to mention another small issue, here how to reproduce it:

  1. use a date mask and write a date, e.g. "01.01.2000"m placeholder used is DD.MM.YYYY
  2. start deleting the part "01.01" from the end

The result is that the mask shows 02.0M.000Y

Is it a knows issue?

Thanks

andreaguru avatar Apr 21 '20 14:04 andreaguru

@andreaguru, can you try ::placeholder

fcojgodoy avatar Apr 30 '20 06:04 fcojgodoy

Count me as interested, I guess.

This was the first thing I noticed and wished was there when implementing a date input with masking. I think for a lot of inputs, like phone number or currency, it's not really needed. But for dates, you don't want it to just have underscores or empty space between the separators, you want it to say something like "MM/DD/YYYY". But if it's all the main text color, at a glance it looks like the input is already filled in. Maybe ::placeholder would help with the initial display, but ideally the text would turn from grey to black as the user typed.

Looks like this has come up a few times. I'm curious why it was removed.

Thanks

Andrew-Marks-Trisept avatar Jan 26 '22 00:01 Andrew-Marks-Trisept

I would also like to sign up as interested in having this feature back.

jingfee avatar Mar 03 '22 12:03 jingfee

Please re-implement the color mask option 🙏

stepanjakl avatar May 18 '23 15:05 stepanjakl

#972

RobinHerbots avatar Dec 07 '23 19:12 RobinHerbots

Colormask is rising from the ashes :-)

RobinHerbots avatar Dec 08 '23 21:12 RobinHerbots

@RobinHerbots Hello, does it mean that the ability to change the color of the filler will appear soon?

skyndfly avatar Dec 11 '23 08:12 skyndfly

Yes

RobinHerbots avatar Dec 12 '23 22:12 RobinHerbots

@RobinHerbots great news. Thank you!

skyndfly avatar Dec 13 '23 09:12 skyndfly

Still work in progress, but you can have a try by including the colormask.js instead of inputmask.js and use colormask with the same options as inputmask. Also load the colormask.css which you can tune and use to change the colors. Suggestions for optimizing the css are always welcome.

RobinHerbots avatar Dec 14 '23 20:12 RobinHerbots