Skip to:
Content

BuddyPress.org

Changeset 10051


Ignore:
Timestamp:
08/14/2015 09:22:29 AM (9 years ago)
Author:
imath
Message:

BuddyPress Uploader Accessibility: "screen-reader" classes

Use the "screen-reader-text" class inside the WP Administration and use the "bp-screen-reader-text" one into the front-end.

See #6531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php

    r9978 r10051  
    2222                    <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
    2323                    <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>
    24                     <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="bp-screen-reader-text"><?php esc_html_e( 'Select your File', 'buddypress' ); ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
     24                    <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php esc_html_e( 'Select your File', 'buddypress' ); ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
    2525                </div>
    2626            </div>
Note: See TracChangeset for help on using the changeset viewer.