Make WordPress Core


Ignore:
Timestamp:
07/14/2026 09:43:31 PM (3 months ago)
Author:
joedolson
Message:

Customize: Add visible text on responsive view switches.

Add a visible text label on the Customizer's responsive view switches. While the text is very small, it serves to supplement the icons to help more readily comprehend the purpose of these controls. Consolidate the labels so the visible label matches the accessible name of the control for voice command users, and add a group role with aria-label to provide improved context for screen reader users.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12519

Props ahortin, iamjolly, cheffheid, oglekler, afercia, abcd95, westonruter, celloexpressions, rianrietveld, joshuawold, estelaris, mukesh27, joedolson, wildworks.
Fixes #36447.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r62727 r62745  
    50455045                $devices = array(
    50465046                        'desktop' => array(
    5047                                 'label'   => __( 'Enter desktop preview mode' ),
     5047                                'label'   => __( 'Desktop' ),
    50485048                                'default' => true,
    50495049                        ),
    50505050                        'tablet'  => array(
    5051                                 'label' => __( 'Enter tablet preview mode' ),
     5051                                'label' => __( 'Tablet' ),
    50525052                        ),
    50535053                        'mobile'  => array(
    5054                                 'label' => __( 'Enter mobile preview mode' ),
     5054                                'label' => __( 'Mobile' ),
    50555055                        ),
    50565056                );
Note: See TracChangeset for help on using the changeset viewer.