Skip to content

placeholder text masked #25

@jbress

Description

@jbress

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions