
----- Original Message -----
From: "Einav Cohen" <ecohen@redhat.com> To: "Greg Sheremeta" <gshereme@redhat.com> Cc: "engine-devel" <engine-devel@ovirt.org> Sent: Thursday, March 13, 2014 12:14:51 PM Subject: Re: [Engine-devel] attn ui devs: why do we use inputs for labels?
I could be wrong, but there is a chance that using "input type=text" allows selecting/copying the text, rather than a plain label, which doesn't allow that.
If that's the reason, it must be a quirky browser thing. I can select and copy <label>s in Chrome.
I am not sure if there are any (additional?) advantages to using "input type=text" (the other UI maintainers will probably know better).
I'd like to pursue correcting this, if possible.
if there is a more "correct" way that won't result in losing any existing functionality, +1.
---- Thanks, Einav
----- Original Message -----
From: "Greg Sheremeta" <gshereme@redhat.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Thursday, March 13, 2014 11:02:15 AM Subject: [Engine-devel] attn ui devs: why do we use inputs for labels?
Hi fellow UI developers,
Can someone explain why we are using "input type=text" fields to render labels? (see screenshot[1]) This seems like bad practice for a few reasons: * it's not semantic HTML * inputs do not have variable sizing like text. They cannot shrink down to the size of the text, which makes positioning difficult. * common browser extensions such as LastPass can be confused (see screenshot[1] -- lastpass sees these labels for the text fields they are, and attempts to help the user fill them in -- that's what those gray asterisks are. Very confusing.)
I'd like to pursue correcting this, if possible.
Thanks, Greg
[1] http://i.imgur.com/AweOhJe.png
Greg Sheremeta Red Hat, Inc. Sr. Software Engineer, RHEV Cell: 919-807-1086 gshereme@redhat.com _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel