[Engine-devel] attn ui devs: why do we use inputs for labels?

Einav Cohen ecohen at redhat.com
Thu Mar 13 16:14:51 UTC 2014


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. 

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 at redhat.com>
> To: "engine-devel" <engine-devel at 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 at redhat.com
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Devel mailing list