Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Incorrect text field sizes #1002

Closed
bmihelac opened this issue Jul 24, 2017 · 2 comments
Closed

Incorrect text field sizes #1002

bmihelac opened this issue Jul 24, 2017 · 2 comments

Comments

@bmihelac
Copy link
Contributor

** PLEASE READ THIS BEFORE FILING AN ISSUE **

Bugs

Follow the template below to ensure the quickest and most accurate response to your issue.

What MDC-Web Version are you using?

Please be specific, e.g. major.minor.patch

v0.15.0

What browser(s) is this bug affecting?

Chrome, Firefox tested, probably others too

Please include the browser version. A user-agent string is also quite helpful.

Version 62.0.3165.0 (Official Build) canary (64-bit)

What OS are you using?

OSX

Please include the OS version.

10.9.5

What are the steps to reproduce the bug?

Open page https://material-components-web.appspot.com/textfield.html
Try to click on the first text field in the near the right edge.

text-field-width

What is the expected behavior?

Text field should gain focus, but it does not, because field is smaller than a line (red vs blue box on image).

What is the actual behavior?

Text field does not gain focus.
Fields with lot of text are cut before underline ends.

Any other information you believe would be useful?

@yeelan0319
Copy link
Contributor

Thanks for filing the issue, this definitely looks like a bug.

@bmihelac, would you like to file a PR to help us correct it?
Adding width: 100% to .mdc-textfield__input should fix the bug.

bmihelac added a commit to bmihelac/material-components-web that referenced this issue Jul 26, 2017
bmihelac added a commit to bmihelac/material-components-web that referenced this issue Jul 26, 2017
@bmihelac
Copy link
Contributor Author

@yeelan0319 thanks for the tip. It works as expected with width set on input element. I have added PR.

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

No branches or pull requests

2 participants