Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when no Site Icon set, when it is too small, or when a PNG is not being used #229

Closed
westonruter opened this issue Dec 12, 2019 · 5 comments · Fixed by #702
Closed
Labels
Milestone

Comments

@westonruter
Copy link
Collaborator

westonruter commented Dec 12, 2019

The Lighthouse PWA audit flags a Web App Manifest that:

  1. Is lacking an icon.
  2. Has an icon that is less than 512px square.
  3. Is not a PNG.

These requirements should be enforced in the Customizer when selecting a site icon, and/or a warning notice should be shown with the Customizer control when the selected icon does not satisfy the requirements. This should also be added as a Site Health test.

@westonruter westonruter added the web-app-manifest Web App Manifests label Mar 29, 2020
@westonruter westonruter changed the title Warn when a PNG is not being used as the site icon Warn when no Site Icon set, when it is too small, or when a PNG is not being used May 15, 2020
@westonruter westonruter added this to the 0.6 milestone May 15, 2020
@gziolo
Copy link

gziolo commented May 15, 2020

I run into this issue on my site that had an icon set a few years back. Related Twitter thread:
https://twitter.com/gziolo/status/1261338942328016896

Screen Shot 2020-05-15 at 18 52 11

@westonruter westonruter modified the milestones: 0.6, 0.7 Dec 10, 2020
@westonruter
Copy link
Collaborator Author

There should be a link from the Site Health test to the location where the Site Icon can be updated. As mentioned in #304 (comment), Full Site Editing complicates this a bit since block-based themes don't have the Customizer.

@ankitrox ankitrox self-assigned this Feb 9, 2022
@ankitrox
Copy link
Collaborator

ankitrox commented Feb 9, 2022

@westonruter I will take this up from here and will look into possibilities to handle the mentioned scenarios.

@westonruter
Copy link
Collaborator Author

In addition to the Customizer, this should be implemented as a Site Health check. See also:

* @todo Add test for PNG site icon.

The test should then have as one of its actions a link to go to the Customizer or Site Editor to edit the site icon. See related change for short name test.

@pooja-muchandikar
Copy link

QA Passed ✅

Warning messages are shown as expected.

Screen.Recording.2022-04-19.at.7.02.31.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants