[wp-trac] [WordPress Trac] #40462: Add placeholders to wp_login_form()
WordPress Trac
noreply at wordpress.org
Wed Feb 28 02:05:53 UTC 2018
#40462: Add placeholders to wp_login_form()
-------------------------------------+-------------------------------------
Reporter: ramiy | Owner: voldemortensen
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: accessibility,
close | template
-------------------------------------+-------------------------------------
Changes (by dd32):
* keywords: has-patch 2nd-opinion => has-patch 2nd-opinion close
Comment:
After reviewing this ticket, I agree with @afercia and @pento on this one.
Put simply, placeholders are not a viable replacement for labels (although
I admit are used as such in many forms, often badly) especially given the
accessibility concerns raised.
Looking at [attachment:40462.5.patch], given it requires custom code to be
written and there's a bunch of workarounds posted here, there doesn't seem
to be a good reason to even add support to core to me (which WordPress
itself wouldn't use in the name of accessibility).
I personally find the [https://wordcamp.org/wp-login.php WordCamp.org
login screen] to be the best example of how to provide extra contextual
login details to end users, it does this by adding information prior to
the login fields which explains what accounts to use. A short paragraph
will always be more useful to an end-user than 2-3 words in a form field
which disappear after focus..
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40462#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list