Opened 12 years ago

Last modified 12 years ago

#190 closed defect (FIXED)

In-field labels

Reported by: Jan-Christoph Borchardt Owned by: Jef van Schendel
Priority: minor Milestone:
Component: ui Keywords:
Cc: Parent Tickets:

Description

For the log in and registration forms, the labels should go in the
fields to make it more quickly recognizable.
Check this jQuery plugin:
`http://fuelyourcoding.com/scripts/infield/ <http://fuelyourcoding.com/scripts/infield/>`_



Change History (5)

comment:1 by Jan-Christoph Borchardt, 12 years ago

And in HTML5 of course you would use the placeholder="Username"
attribute. :)



comment:2 by Christopher Allan Webber, 12 years ago

WHOA. We should totally placeholder= it up :)

Wonder how hard that is to do with wtforms...?



comment:3 by Jan-Christoph Borchardt, 12 years ago

Actually, the HTML5 spec says:
»The placeholder attribute should not be used as an alternative to
a label.«
`http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute <http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute>`_

So the jQuery plugin is still the best way to do that. I don't know
about its non-JS compatibility though. An issue for us was
Chromium's autofill feature colliding with it - having the info
filled in but the labels still displayed. We didn't look into a
solution yet as we still use the placeholder attribute for
ownCloud's log in form.



comment:4 by Jef van Schendel, 12 years ago

Owner: set to Jef van Schendel
Status: NewClosed
I'm closing this bug, since it seems that the placeholder attribute
is not the right way to do this and I think that including and
using a jQuery plugin just for this is not necessary.



comment:5 by Will Kahn-Greene, 12 years ago

The original url for this bug was http://bugs.foocorp.net/issues/484 .

Note: See TracTickets for help on using tickets.