Skip to content

Commit

Permalink
Fix number input button cursor on OS X Chrome
Browse files Browse the repository at this point in the history
Fix the cursor style for Chrome's increment/decrement buttons on
`input[type="number"]. For certain `font-size` values of the `input`, it
causes the cursor style of the decrement button to change from `default`
to `text`.

Fix necolasgh-283
  • Loading branch information
necolas committed Jan 24, 2014
1 parent 4b94eb7 commit d86aa85
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,17 @@ input[type="radio"] {
padding: 0; /* 2 */
}

/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/

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

/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
Expand Down

0 comments on commit d86aa85

Please sign in to comment.