On 08/18/2014 12:51 PM, Jon Robson wrote:
I was under the impression that a select element could
be styled in
the same way as an input element using 'mw-ui-input' [1] as
essentially they are one field.
I consider "text input" and "dropdown input" two separate control
types.
If you are curious what this would look like it would
look like this:
http://tools.wmflabs.org/styleguide/desktop/select.html
Technical details aside, I see a few issues. In Firefox, there are two
focus indicators (blue bar and dotted line focus indicator). Only one
is needed. The left-hand blue bar makes more sense to me for a text
input (I can type) since I mentally associate it with a caret.
It might be that we should wait for OOJS-UI for this, especially because
people want things like comboboxes (let alone regular styling). HTML5
kind of has this (combobox) apparently with <input type="text"
list="something">, but we'd have to do a JavaScript polyfill anyway for
real support.
Matt Flaschen