[wp-trac] [WordPress Trac] #53801: Block-based Widgets Screen does action wp_footer after each Widget

WordPress Trac noreply at wordpress.org
Fri Sep 3 17:42:38 UTC 2021


#53801: Block-based Widgets Screen does action wp_footer after each Widget
-------------------------------------+---------------------
 Reporter:  MadtownLems              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.8.2
Component:  Widgets                  |     Version:  5.8
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------

Comment (by ryokuhi):

 Thanks @costdev for the feedback request. We discussed this ticket today
 during the weekly Accessibility Team's bug-scrub.

 We had a look at the latest patch: if its purpose is to hide non-widget
 elements not only visually, but also to assistive technologies, then the
 `display: none;` rule should be enough.
 No team member has tested the legacy widget preview screen yet: a round of
 testing using keyboard only navigation and with a screen reader might help
 in pointing out other possible accessibility issues, but at the moment we
 don't have specific concerns.

 A possible unexpected result of hiding non-widget elements is that, in
 case the widget requires some content located in the footer (for example,
 if the widget triggers a modal contained in `wp_footer`), it would be
 impossible to replicate that behaviour in preview mode. We don't know of
 any specific example of such an implementation and this wouldn't be an
 accessibility issue, but it's worth taking in consideration such a
 possibility.

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


More information about the wp-trac mailing list