Skip to:
Content

BuddyPress.org

Changeset 10462


Ignore:
Timestamp:
01/25/2016 09:25:53 PM (9 years ago)
Author:
mercime
Message:

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

Fixes #6742.

File:
1 edited

Legend:

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

    r10454 r10462  
    174174            '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>'
    175175        );
     176
     177        // Add accessible hidden heading and text for Groups screen pagination.
     178        if ( bp_get_major_wp_version() >= 4.4 ) {
     179            get_current_screen()->set_screen_reader_content( array(
     180                'heading_pagination' => __( 'Groups list navigation', 'buddypress' ),
     181            ) );
     182        }
    176183    }
    177184
     
    13231330        $this->display_tablenav( 'top' ); ?>
    13241331
     1332        <h2 class="screen-reader-text"><?php _e( 'Groups list', 'buddypress' ); ?></h2>
     1333
    13251334        <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    13261335            <thead>
     
    13881397    public function get_views() {
    13891398        $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?>
     1399
     1400        <h2 class="screen-reader-text"><?php _e( 'Filter groups list', 'buddypress' ); ?></h2>
    13901401
    13911402        <ul class="subsubsub">
Note: See TracChangeset for help on using the changeset viewer.