Skip to content

Commit b607653

Browse files
committed
Reduce padding/add room on color input for Chrome (v32/34 OS X).
1 parent 49f7881 commit b607653

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/forms/css/forms.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
box-sizing: border-box;
2727
}
2828

29+
/* Chrome (as of v.32/34 on OS X) needs additional room for color to display. */
30+
/* May be able to remove this tweak as color inputs become more standardized across browsers. */
31+
.pure-form input[type="color"] {
32+
padding: 0.2em 0.5em;
33+
}
34+
2935
.pure-form input:not([type]):focus,
3036
.pure-form input[type="text"]:focus,
3137
.pure-form input[type="password"]:focus,

src/forms/tests/manual/forms.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ <h2>Stacked Form</h2>
106106
<option>NY</option>
107107
</select>
108108

109+
<label>Color</label>
110+
<input type="color">
111+
109112
<label class="pure-checkbox">
110113
<input type="checkbox"> I've read the terms and conditions
111114
</label>

0 commit comments

Comments
 (0)