[wp-trac] [WordPress Trac] #34867: Introduce a CSS class which identifies elements that are either links or buttons depending on JS presence

WordPress Trac noreply at wordpress.org
Tue Dec 15 01:11:51 UTC 2015


#34867: Introduce a CSS class which identifies elements that are either links or
buttons depending on JS presence
-------------------------------------+-------------------------------------
 Reporter:  mcapybara                |       Owner:  afercia
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.5
Component:  Administration           |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  ui, accessibility,
  screenshots                        |  javascript
-------------------------------------+-------------------------------------

Comment (by azaozz):

 34867.2.diff looks good. Agree that using MutationObserver is an overkill
 there. As far as I see all places that need the aria attribute are only
 updated through jQuery AJAX, so using `$( document ).ajaxComplete()` will
 work well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34867#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list