Page MenuHomePhabricator

Edit summary: Use placeholder instead of label
Closed, DeclinedPublic

Description

The edit summary looks a bit nicer if you use a place holder instead of a label (if Browser supports HTML5).

#wpSummaryLabel

Details

Related Gerrit Patches:

Event Timeline

Subfader created this task.Jan 3 2015, 3:58 PM
Subfader raised the priority of this task from to Needs Triage.
Subfader updated the task description. (Show Details)
Subfader updated the task description. (Show Details)
Subfader set Security to None.
Subfader added a subscriber: Subfader.
Krenair added a subscriber: Krenair.
Glaisher added a subscriber: Glaisher.

Yep. Remove the label and use a placeholder there. but if the browser doesn't support it, only the label should be there. If both placeholder and label are there, it's ugly, imo.

Aklapper triaged this task as Lowest priority.Jan 3 2015, 8:55 PM
Florian claimed this task.Jan 3 2015, 9:06 PM

Change 182590 had a related patch set uploaded (by Florianschmidtwelzow):
Use placeholder instead of label for Summary input in EditPage.php

https://gerrit.wikimedia.org/r/182590

Patch-For-Review

Please don't. Replacing textual labels with placeholders is bad for accessibility, especially in larger forms (like this one) or for people born before mainstream computing technology. We didn't do it even for the login form, which is a most obvious UI element, common to every website that has accounts at all. (We did do it for the search box in Vector, a long, long time ago; curiously, many power users prefer the older MonoBook skin.)

Additionally, in this particular case, it makes it impossible to insert additional explanations or links in the appropriate message, and many wikis (such as the English Wikipedia) link to help pages on edit summary there.

Schnark added a subscriber: Schnark.Jan 5 2015, 9:42 AM

Yet another reason not to use a placeholder instead of a label: When you edit a section, the summary is pre-filled with the section title. This would suppress the placeholder.

Very convincing facts, thanks.

So... Is this declined?

Change 182590 abandoned by Florianschmidtwelzow:
Use placeholder instead of label for Summary input in EditPage.php

Reason:
see task discussion

https://gerrit.wikimedia.org/r/182590

According to the official HTML5 draft, "The placeholder attribute should not be used as a replacement for a label".

Ricordisamoa closed this task as Declined.Jan 5 2015, 10:30 PM
Ricordisamoa awarded a token.