#49237 closed enhancement (fixed)
Add hatched background to Image widget preview area
Reported by: | bahia0019 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | 5.4 |
Component: | Widgets | Keywords: | has-patch needs-testing |
Focuses: | ui, administration | Cc: |
Description
In the Image widget, if you have a white logo with transparent areas (PNG or SVG), it's impossible to see the logo because the preview background is white.
I'm submitting a patch that creates a hatched area. It's the exact same CSS as the background area for the Media Library edit screen.
Attachments (1)
Change History (9)
#1
@
5 years ago
- Milestone changed from Awaiting Review to 5.4
- Owner set to SergeyBiryukov
- Status changed from assigned to reviewing
#2
@
5 years ago
I know this should be a separate ticket, but I've seen similar issues happen when uploading transparent favicons, expect with those the background seems to appear black. That might be worth looking into as well at the same time.
This ticket was mentioned in Slack in #core by david.baumwald. View the logs.
5 years ago
#5
@
5 years ago
- Milestone changed from 5.4 to Future Release
This ticket still needs testing, and with 5.4 Beta 1 landing tomorrow, this is being moved to Future Release
. If any maintainer or committer feels this can be included in 5.4 or wishes to assume ownership during a specific cycle, feel free to update the milestone accordingly.
The pertinent changes start at line 15 with the class ".media-widget-control .media-widget-preview img". It appears Prettier has made some formatting changes to the CSS.