Make WordPress Core


Ignore:
Timestamp:
04/17/2016 12:00:23 PM (8 years ago)
Author:
afercia
Message:

Customizer, Site Icon preview: improve alt attributes and text accessibility.

Props shahpranaf, TacoVerdo, afercia.

Fixes #36562.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-site-icon-control.php

    r37012 r37229  
    6565                <div class="site-icon-preview">
    6666                    <div class="favicon-preview">
    67                         <img src="<?php echo esc_url( admin_url( 'images/browser.png' ) ); ?>" class="browser-preview" width="182" alt="<?php esc_attr_e( 'Browser interface preview' ); ?>" />
     67                        <img src="<?php echo esc_url( admin_url( 'images/browser.png' ) ); ?>" class="browser-preview" width="182" alt="" />
    6868
    6969                        <div class="favicon">
    7070                            <img id="preview-favicon" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    7171                        </div>
    72                         <span class="browser-title"><?php bloginfo( 'name' ); ?></span>
     72                        <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
    7373                    </div>
    7474                    <img class="app-icon-preview" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
Note: See TracChangeset for help on using the changeset viewer.