[Owncloud] Why are we using a label in the login mask to show placeholder values?

Jan-Christoph Borchardt hey at jancborchardt.net
Fri Oct 26 19:51:45 UTC 2012


The HTML5 placeholder wasn’t used because a) it’s not proper use: it’s
used for placeholdering things like »http://« in a field where a web
address is supposed to go, but not the label »web address«. and b) it
vanishes when you click the field.

Meanwhile, I fixed the issue where label and browser-autofilled text
overflow: https://github.com/owncloud/core/commit/46871e9b2e39750d64d16fb127cbfd608477287b
So please test. It’s not »just for aesthetics«, but it makes the log
in form feel way simpler and shorter.


On Sun, Sep 30, 2012 at 9:47 AM, Thomas Tanghus <thomas at tanghus.net> wrote:
> On Thursday 27 September 2012 22:51 Robin Appelman wrote:
>> iirc, a custom placeholder was used instead of using the html5 placeholder
>> attribute because the native placeholder dissapears as soon as the input
>> gets focus. With the username field being auto focused it won't have a
>> visible placeholder untill it loses focus.
>
> IMHO we shouldn't use infield labels - be they native placeholder attributes
> or not - for the login. I fail to see what is wrong with simply having normal
> labels next to the input fields.
> If it is solely for aesthetics it still fails, because it looks bad for the
> reasons mentioned earlier in the thread.
>
> We could still use placeholder for hinting, but there's no real reason for it
> - still IMHO ;)
>
> --
> Med venlig hilsen / Best Regards
>
> Thomas Tanghus
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list