[wp-trac] [WordPress Trac] #38185: Improve the post "locked indicator" accessibility
WordPress Trac
noreply at wordpress.org
Sat Oct 1 13:29:20 UTC 2016
#38185: Improve the post "locked indicator" accessibility
-------------------------------------+-------------------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-screenshots good- | Focuses: ui, accessibility,
first-bug has-patch | administration
-------------------------------------+-------------------------------------
Comment (by afercia):
Replying to [comment:2 mattking5000]:
> In the supplied patch, this text gets applied to the div even when the
post is not locked.
Yep, right. I think the best option would be keeping it simple and rely on
the current `wp-locked` CSS class. In `list-tables.css` use `display:
none` by default on the locked indicator and set to display block when the
table row has the `wp-locked` class. Screen readers don't announce element
hidden with `display: none`.
> Wondering how to easily indicate to a screen reader when a post gets
"unlocked" while they have the post admin page still open.
This could be done with a `wp.a11y.speak()` message when the locked status
is checked and set/unset (see `inline-edit-post.js`) but then the same
should be done when a post gets "locked". Considering there could be
multiple posts changing state at the same time (or in a short amount of
time), this could lead to multiple messages being announced repeatedly and
could be potentially confusing. I'd rather keep it simple, at least for
now :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38185#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list