Opened 7 years ago
Closed 6 years ago
#42535 closed defect (bug) (fixed)
Remove checkered background for icons in Attachment Details
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Media | Keywords: | has-patch commit |
Focuses: | ui, administration | Cc: |
Description
#41948 added a checkered background for transparent images in Attachment Details modal.
This is not necessary for icons, see the screenshot. Adjusting [41569] to only apply the styles to images without .icon
class should fix the issue.
To reproduce, upload a PDF file to a server without Imagick, ImageMagick, or Ghostscript, and open the Attachment Details window.
Attachments (4)
Change History (13)
#1
in reply to:
↑ description
@
7 years ago
#2
@
7 years ago
- Keywords has-patch needs-testing added; needs-patch removed
Tested in Chromium and Firefox but could use further testing.
Another option would be to use the CSS3 Selector of :not(.icon)
for the background properties but the override method in the patch is perhaps simpler.
#5
@
7 years ago
- Version set to 4.9
Hi @janak007 I could be missing something but it looks like your patch is always removing the checked background added in #41948.
The background image itself should remain just be hidden when an icon is shown (like with a PDF or video file). This should be what happens when you apply 42535.diff Could you test to make sure that's happening for you?
As a small administrative note, when iterating an existing patch to a ticket it's generally recommended to add a patch number. For example, your patch would be 42535.2.diff. This makes it easy to see the latest patch to grab when testing.
Thanks for contributing to WordPress core :)
#6
@
7 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 42642:
Can be reproduced with a ZIP file as well.