[wp-trac] [WordPress Trac] #50486: Improve the admin notices accessibility

WordPress Trac noreply at wordpress.org
Thu Aug 12 11:34:16 UTC 2021


#50486: Improve the admin notices accessibility
----------------------------+--------------------------------
 Reporter:  afercia         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, accessibility
----------------------------+--------------------------------

Comment (by psykro):

 @afercia thanks for detailing these issues. To clarify what you have
 raised here, I have a couple of questions.

   "inline" notices (the ones printed out in the middle of the page): make
 a decision whether to keep them or allow only notices at the top of the
 page

 1. Can you give me an example of this type of inline notice?

   the notices should be printed out after the main H1 heading as that's
 the part of the content with higher chances to be navigated to

 2. Is this not currently the case? If I use the example notice from the
 official documentation:

 {{{#!php
 <?php
 function sample_admin_notice__success() {
         ?>
         <div class="notice notice-success is-dismissible">
                 <p><?php _e( 'Done!', 'sample-text-domain' ); ?></p>
         </div>
         <?php
 }
 add_action( 'admin_notices', 'sample_admin_notice__success' );
 }}}

 it's rendered just below the main h1 of that admin page.

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


More information about the wp-trac mailing list