Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2018 08:04:56 PM (8 years ago)
Author:
djpaul
Message:

Admin, Welcome screen: accessibility improvements.

Fixes #7835

Props to mercime for the initial patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-admin.php

    r12093 r12095  
    558558                </div>
    559559
    560                 <div id="bp-hello-container" style="display: none;">
    561                         <div class="bp-hello-header">
     560                <div id="bp-hello-container" role="dialog" aria-labelledby="bp-hello-title" style="display: none;">
     561                        <div class="bp-hello-header" role="document">
    562562                                <div class="bp-hello-close">
    563                                         <a class="close-modal" href="#" title="<?php echo esc_attr( 'Close pop-up', 'buddypress' ); ?>"><span class="screen-reader-text"><?php esc_html_e( 'Close pop-up', 'buddypress' ); ?></span></a>
     563                                        <button type="button" class="close-modal button bp-tooltip" data-bp-tooltip="<?php echo esc_attr( 'Close pop-up', 'buddypress' ); ?>">
     564                                                <span class="screen-reader-text"><?php esc_html_e( 'Close pop-up', 'buddypress' ); ?></span>
     565                                        </button>
    564566                                </div>
    565567
    566568                                <div class="bp-hello-title">
    567                                         <h1><?php esc_html_e( _x( 'New in BuddyPress', 'section heading', 'buddypress' ) ); ?></h1>
     569                                        <h1 id="bp-hello-title" tabindex="-1"><?php esc_html_e( _x( 'New in BuddyPress', 'section heading', 'buddypress' ) ); ?></h1>
    568570                                </div>
    569571                        </div>
    … …  
    588590                                        ?>
    589591                                </p>
    590                                 <img srcset="https://via.placeholder.com/1024x576 1024w, https://via.placeholder.com/2048x1152 2048w" src="https://placekitten.com/1024x576" sizes="(max-width: 1023px) 90vw, 65vw" alt="a rad wolf" />
     592                                <img srcset="https://via.placeholder.com/1024x576 1024w, https://via.placeholder.com/2048x1152 2048w" src="https://placekitten.com/1024x576" sizes="(max-width: 1023px) 90vw, 65vw" alt="" />
    591593
    592594
    … …  
    671673                                                        <?php
    672674                                                        printf(
    673                                                                 '<a class="twitter" title="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
     675                                                                '<a class="twitter bp-tooltip" data-bp-tooltip="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
    674676                                                                esc_attr( 'Follow BuddyPress on Twitter', 'buddypress' ),
    675677                                                                esc_url( 'https://twitter.com/buddypress' ),
    … …  
    682684                                                        <?php
    683685                                                        printf(
    684                                                                 '<a class="support" title="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
     686                                                                '<a class="support bp-tooltip" data-bp-tooltip="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
    685687                                                                esc_attr( 'Visit the Support Forums', 'buddypress' ),
    686688                                                                esc_url( 'https://buddypress.org/support/' ),
Note: See TracChangeset for help on using the changeset viewer.