[wp-trac] [WordPress Trac] #47138: Visible labelling only done via placeholder attribute
WordPress Trac
noreply at wordpress.org
Mon Oct 7 12:42:02 UTC 2019
#47138: Visible labelling only done via placeholder attribute
-------------------------------------------------+-------------------------
Reporter: anevins | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Media | Version:
Severity: minor | Resolution: fixed
Keywords: has-screenshots wpcampus-report | Focuses: ui,
form-controls has-patch commit | accessibility
-------------------------------------------------+-------------------------
Changes (by afercia):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"46418" 46418]:
{{{
#!CommitTicketReference repository="" revision="46418"
Accessibility: Media: Improve the search media field labelling.
Visible `<label>` elements benefit all users. The `placeholder` attribute
should not be used as a replacement for visible labels.
Instead, it's supposed to be used only for a short hint to aid users with
data entry e.g. a sample value or a brief description of the expected
format.
Screen readers may not announce a `placeholder` attribute at all. Other
users may suffer from the lack of a visible label and a placeholder used
as replacement, for example:
- users with cognitive disabilities may have trouble remembering what the
filled field does
- speech recognition users cannot see the name they can speak to set focus
on the field
- low-vision users with high text-size may not be able to see the whole
placeholder even when it's visible, if its value is clipped by the edge of
the input
Props anevins, audrasjb, karmatosed, azaozz, SergeyBiryukov, afercia.
See #40331.
Fixes #47138.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47138#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list