[wp-trac] [WordPress Trac] #42390: TinyMCE + Edge input:focus placeholders disappear
WordPress Trac
noreply at wordpress.org
Thu Mar 14 17:38:43 UTC 2019
#42390: TinyMCE + Edge input:focus placeholders disappear
-------------------------------------+-------------------------------------
Reporter: Cybr | Owner: anevins
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: Administration | Version: 4.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-ui- | Focuses: ui, accessibility,
feedback has-screenshots commit | javascript
-------------------------------------+-------------------------------------
Changes (by afercia):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"44896" 44896]:
{{{
#!CommitTicketReference repository="" revision="44896"
Accessibility: Improve the placeholder "prompt" text in the post title and
Quick Draft widget.
Old browsers didn't support the HTML placeholder attribute. For a number
of years, `<label>` elements have been used in a few places in WordPress
to emulate placeholders. It's time to improve semantics and interaction,
use real placeholders when possible, and clean up some JavaScript.
- Quick Draft widget: it now uses visible `<label>` elements and a real
`placeholder` attribute
- removes the related JavaScript
- Post title:
- keeps the "prompt" label for backwards compatibility
- improves the JavaScript to make the "prompt" label stay visible on
focus and disappear when typing, like real placeholder do
- changes the post "prompt" text from "Enter title here" to "Add title"
for consistency with the Block Editor
- cleans-up some CSS
Props Cheffheid, afercia.
Fixes #42390.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42390#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list