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

[Chrome] md-input up/down arrows showing when input type is not set to number #1082

Closed
easedev opened this issue Aug 19, 2016 · 4 comments · Fixed by #1734
Closed

[Chrome] md-input up/down arrows showing when input type is not set to number #1082

easedev opened this issue Aug 19, 2016 · 4 comments · Fixed by #1734
Assignees

Comments

@easedev
Copy link

easedev commented Aug 19, 2016

Bug, feature request, or proposal:

Bug

What is the expected behavior?

In all browsers the md-input up/down buttons should be visible only when input type is set to "number".

What is the current behavior?

In Chrome the md-input up/down buttons show even when type="number" is not set and when "style='line-height: 1'" is set on body such as when using this reset.css : http://meyerweb.com/eric/tools/css/reset/
Firefox shows no issue there.

If normalize.css is used instead of reset.css then the issue disappears.

What are the steps to reproduce?

http://plnkr.co/edit/suhu6SElSc2GwEEXMKq2?p=preview

Removing "line-height" on body solves the problem.
So does removing the surrounding md-card-content

Which versions of Angular, Material, OS, browsers are affected?

Chrome Version 52.0.2743.116 m
Chromium Version 51.0.2704.79 Ubuntu 16.04 (64-bit)
"@angular/core": "2.0.0-rc.5",
"@angular2-material/core": "^2.0.0-alpha.7-4",
"@angular2-material/input": "^2.0.0-alpha.7-4"

@artiz
Copy link

artiz commented Oct 13, 2016

Quick workaround that works for me:
md-input {
line-height: 1.1;
}

@jelbourn
Copy link
Member

jelbourn commented Nov 3, 2016

@mmalerba can you produce this on master?

@mmalerba
Copy link
Contributor

mmalerba commented Nov 4, 2016

These aren't actually input up/down buttons, they're the scrollbar caps for the placeholder label. I can just set the line-height to normal.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants