Making WordPress.org

Opened 8 years ago

Closed 7 years ago

#2646 closed enhancement (fixed)

SVG icons should be used in preference to 128/256 images

Reported by: dd32's profile dd32 Owned by: obenland's profile obenland
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: needs-patch
Cc:

Description

It appears that the plugin directory uses the 128/256 images in preference to the SVG icons if they exist.

This isn't a regression from the previous plugin directory, the CSS generated for an example plugin icon is the following:

<style type='text/css'>
#plugin-icon-easy-widget-columns { width:128px; height:128px; background-image: url(//ps.w.org/easy-widget-columns/assets/icon-128x128.png?rev=1612266); background-size:128px 128px; }
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { #plugin-icon-easy-widget-columns { background-image: url(//ps.w.org/easy-widget-columns/assets/icon-256x256.png?rev=1612266); } }
</style>}}}

Change History (4)

#2 @tellyworth
7 years ago

  • Keywords needs-patch added
  • Milestone changed from Plugin Directory v3 - Future to Plugin Directory v3.0

This ticket was mentioned in Slack in #meta by denisco. View the logs.


7 years ago

#4 @obenland
7 years ago

  • Owner set to obenland
  • Resolution set to fixed
  • Status changed from new to closed

In 6404:

Plugins: Always prefer SVG for icons.

H/t denisco.
Fixes #2646.

Note: See TracTickets for help on using tickets.