[wp-trac] [WordPress Trac] #33029: Dismissable admin notices focus loss
WordPress Trac
noreply at wordpress.org
Sun Jul 26 08:29:21 UTC 2015
#33029: Dismissable admin notices focus loss
-------------------------------------+-------------------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.2
Severity: normal | Resolution:
Keywords: 2nd-opinion dev- | Focuses: ui, accessibility,
feedback has-patch | javascript
-------------------------------------+-------------------------------------
Changes (by McGuive7):
* keywords: needs-patch 2nd-opinion => 2nd-opinion dev-feedback has-patch
Comment:
Just added a starter patch for this one (and a quick revision). A few
things to note:
1. By the time the click event fires, focus already appears to have been
lost, so I'm using the mousedown event to track the previously focused
element and add and identifying data attribute. Open to better ways of
doing this.
2. It may make sense to split this out into a more generic JS function
that can be applied generally to a wider variety of events for which this
behavior is desired. Would love some additional opinions/thoughts on
whether or not this is worthwhile, feasible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33029#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list