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

input[type="number"] not displaying properly in Chrome #8350

Closed
eintnohick opened this issue Jun 30, 2013 · 10 comments
Closed

input[type="number"] not displaying properly in Chrome #8350

eintnohick opened this issue Jun 30, 2013 · 10 comments

Comments

@eintnohick
Copy link

This seems to fix it:

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  height:auto;
}
@liuyl
Copy link
Contributor

liuyl commented Jul 1, 2013

Could you give a live demo? In jsfiddle.

@eintnohick
Copy link
Author

The problem exists when using font-sizes other than the default 14px.

http://jsfiddle.net/39PmK/

@cvrebert
Copy link
Collaborator

cvrebert commented Jul 1, 2013

Erm, do you mean how hovering over the decrement button shows an I-bar text cursor instead of a pointer cursor?

@eintnohick
Copy link
Author

Yes... that it is

@eintnohick eintnohick reopened this Jul 1, 2013
@cvrebert
Copy link
Collaborator

cvrebert commented Jul 1, 2013

A version demonstrating the proposed fix: http://jsfiddle.net/39PmK/1/

@cvrebert
Copy link
Collaborator

Upstream Chrome bug filed: https://code.google.com/p/chromium/issues/detail?id=337668

@cvrebert
Copy link
Collaborator

The hack/fix has been upstreamed into Normalize.css: necolas/normalize.css@d86aa85

stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
@cvrebert
Copy link
Collaborator

Upstream Safari bug filed: https://bugs.webkit.org/show_bug.cgi?id=137269

@cvrebert
Copy link
Collaborator

Seems to be fixed in Chrome as of v37.0.2062.124

cvrebert added a commit that referenced this issue Oct 1, 2014
Saranya-Raaj pushed a commit to Saranya-Raaj/bootstrap that referenced this issue Oct 9, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
cvrebert added a commit that referenced this issue Nov 23, 2014
@nababur
Copy link

nababur commented May 29, 2018

Use this css:)
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {

opacity: 1;

}

@twbs twbs locked as resolved and limited conversation to collaborators May 29, 2018
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

5 participants