Make WordPress Core


Ignore:
Timestamp:
08/18/2025 08:25:45 PM (7 months ago)
Author:
joedolson
Message:

Accessibility: Make buttons to add site images look like buttons.

The buttons to add site icons, logos, header images, and background images were designed with a dashed border. This led to confusion with users thinking they were drop regions for image uploads, rather than buttons to trigger an upload.

Change design of upload buttons to clarify expected user interaction.

Props emaildano, afercia, joedolson, ankitkumarshah, logicrays, shailu25.
Fixes #47579.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r59989 r60645  
    14401440    height: auto;
    14411441    white-space: normal;
     1442}
     1443
     1444.customize-control .attachment-media-view .upload-button {
     1445    width: 100%;
     1446    padding: 9px 0;
     1447}
     1448
     1449.customize-control .attachment-media-view .upload-button.control-focus {
     1450    width: auto;
     1451    padding: 0 10px;
     1452}
     1453
     1454.customize-control.customize-control-header .actions .upload-button.button.new {
     1455    width: 100%;
     1456    padding: 9px 0;
    14421457}
    14431458
     
    29913006    }
    29923007
     3008    .customize-control .attachment-media-view .upload-button {
     3009        padding: 5px 0;
     3010    }
     3011
    29933012    #customize-control-changeset_status .customize-inside-control-row {
    29943013        padding-top: 15px;
Note: See TracChangeset for help on using the changeset viewer.