Skip to:
Content

BuddyPress.org

Changeset 10463


Ignore:
Timestamp:
01/25/2016 09:30:33 PM (10 years ago)
Author:
mercime
Message:

A11y: Add headings for screen readers in the Activity list table panel.

See #6741.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r10375 r10463  
    297297                        '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>'
    298298                );
     299
     300                // Add accessible hidden heading and text for Activity screen pagination.
     301                if ( bp_get_major_wp_version() >= 4.4 ) {
     302                        get_current_screen()->set_screen_reader_content( array(
     303                                'heading_pagination' => __( 'Activity list navigation', 'buddypress' ),
     304                        ) );
     305                }
    299306        }
    300307
     
    12431250                $this->display_tablenav( 'top' ); ?>
    12441251
     1252                <h2 class="screen-reader-text"><?php _e( 'Activities list', 'buddypress' ); ?></h2>
     1253
    12451254                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    12461255                        <thead>
     
    13011310        function get_views() {
    13021311                $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); ?>
     1312
     1313                <h2 class="screen-reader-text"><?php _e( 'Filter activities list', 'buddypress' ); ?></h2>
    13031314
    13041315                <ul class="subsubsub">
Note: See TracChangeset for help on using the changeset viewer.