Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color picker should appear when clicking labels

mmuro opened this issue · comments

I'm not sure if this is related to the wp-color-picker implementation, but that's where I've noticed this issue and placing this here just in case.

Default form behavior like clicking on labels to focus on an input does not work to pop up the Iris color picker.

Can be reproduced with the input either inside or outside the label.

Input inside label
<label for="color-picker">Color Picker <input type="text" id="color-picker" value="#000000"></label>

Input outside label
<label for="color-picker">Color Picker</label><input type="text" id="color-picker" value="#000000">

Farbtastic understood this and displayed the color picker. Iris should, too :)

Is this from a particular place in WP's admin? Or somewhere else? If the latter, please provide a URL or a jsfiddle.

As far as I'm aware, WordPress doesn't make use of labels for the new wp-color-picker. I'm not sure what you want as a fiddle, but here you go: http://jsfiddle.net/XBjZR

This has been fixed since v0.9.15. The bug is present in the version bundled with WP 3.5.