Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholder text masked #25

Open
jbress opened this issue Jun 7, 2023 · 0 comments
Open

placeholder text masked #25

jbress opened this issue Jun 7, 2023 · 0 comments

Comments

@jbress
Copy link

jbress commented Jun 7, 2023

When applying a placeholder attribute, the text of the placeholder gets the text-security font and thus is not readable.

A solution is to restore the placeholder's font using additionnal css, as described here

.my-password-field::placeholder { font-family: [original_font_name]; }
.my-password-field:-ms-input-placeholder { font-family: [original_font_name]; }
.my-password-field::-ms-input-placeholder { font-family: [original_font_name]; }

Note that setting font-family:inherit won't work for the placeholder.

Thanks for your work btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant