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

Unable to style paper-input's input placeholder. #668

Open
2 of 8 tasks
amarsiingh opened this issue Aug 2, 2018 · 0 comments
Open
2 of 8 tasks

Unable to style paper-input's input placeholder. #668

amarsiingh opened this issue Aug 2, 2018 · 0 comments

Comments

@amarsiingh
Copy link

amarsiingh commented Aug 2, 2018

Description

I've a requirement wherein, the input text needs to be UPPERCASE.
So I've used --paper-input-container-shared-input-style to style text using text-transform.
However, this causes the placeholder text to be UPPERCASE'd as well, which is not desirable.

So far, I've tried using ::placeholder pseudo element and classes to lowercase the placeholder text. However that sort of overrides the text transformation applied to input text as well and doesn't apply the UPPERCASE to input text.

Is there any way I can style the placeholder text properly?

Expected outcome

paper-input element should provide a mixin or a way for styling 'placeholder' text.

Actual outcome

paper-input element doesn't provide a mixin or a way to style 'placeholder' text.
Moreover, the ::placeholder pseudo element and classes breaks the styling applied to input.

Live Demo

Steps to reproduce

  1. Create 2 instances of paper-input element.
  2. Style input within paper-input element using --paper-input-container-shared-input-style as text-transform: uppercase;
  3. Include input::placeholder { text-transform: lowercase; }, input::-webkit-input-placeholder { text-transform: lowercase; } to one of the paper-input's shared style mixin.
  4. Serve and notice the difference.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
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