WordPress.org

Make WordPress Core

Changeset 33049


Ignore:
Timestamp:
07/02/15 17:15:47 (23 months ago)
Author:
obenland
Message:

Site Icon: Show correct background preview for transparent images.

iOS will show transparent parts as black, where as the icon itself stays
transparent when used as a favicon.

See #16434.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/site-icon.css

    r32994 r33049  
    5050 
    5151.site-icon-crop-preview-homeicon { 
     52    background-color: #000; 
    5253    -webkit-border-radius: 16px; 
    5354    border-radius: 16px; 
  • trunk/src/wp-admin/js/site-icon-crop.js

    r32994 r33049  
    4040            jcrop_api = $.Jcrop( '#crop-image' ); 
    4141            jcrop_api.setOptions({ 
     42                bgColor: 'transparent', 
    4243                aspectRatio: 1, 
    4344                onSelect: siteIconCrop.updateCoords, 
Note: See TracChangeset for help on using the changeset viewer.