Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/04/2016 02:11:28 AM (7 years ago)
Author:
mercime
Message:

Alert screen readers about new messages inserted through template_notices.

See #3263.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php

    r11128 r11171  
    3333    <?php endif; ?>
    3434
    35     <?php
    36 
    37     /**
    38      * Fires towards the top of template pages for notice display.
    39      *
    40      * @since 1.0.0
    41      */
    42     do_action( 'template_notices' ); ?>
     35    <div id="template-notices" role="alert" aria-atomic="true">
     36        <?php
     37
     38        /**
     39         * Fires towards the top of template pages for notice display.
     40         *
     41         * @since 1.0.0
     42         */
     43        do_action( 'template_notices' ); ?>
     44
     45    </div>
    4346
    4447    <div class="item-list-tabs activity-type-tabs" aria-label="<?php esc_attr_e( 'Sitewide activities navigation', 'buddypress' ); ?>" role="navigation">
Note: See TracChangeset for help on using the changeset viewer.