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. git-svn-id: https://develop.svn.wordpress.org/trunk@33049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f8cbb8fde8
commit
8f4774104b
@ -49,6 +49,7 @@
|
||||
}
|
||||
|
||||
.site-icon-crop-preview-homeicon {
|
||||
background-color: #000;
|
||||
-webkit-border-radius: 16px;
|
||||
border-radius: 16px;
|
||||
height: 64px;
|
||||
|
@ -39,6 +39,7 @@
|
||||
ready: function() {
|
||||
jcrop_api = $.Jcrop( '#crop-image' );
|
||||
jcrop_api.setOptions({
|
||||
bgColor: 'transparent',
|
||||
aspectRatio: 1,
|
||||
onSelect: siteIconCrop.updateCoords,
|
||||
onChange: siteIconCrop.updateCoords,
|
||||
|
Loading…
Reference in New Issue
Block a user