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

docs: update sizes="any" apply strategy to icons #69975

Merged
merged 6 commits into from
Sep 11, 2024

Conversation

devjiwonchoi
Copy link
Member

@devjiwonchoi devjiwonchoi commented Sep 11, 2024

Why?

When adding app/favicon.ico, the sizes property were set to "any" to avoid a browser bug where an .ico icon is favored over .svg. However, we changed the behavior to set the actual size at #53343 but the doc wasn't updated together.

How?

Removed the previous explanation and updated thatsizes="any" may be applied if the extension is .svg or the size is not specified.

Closes #69553
Closes NDX-284

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. labels Sep 11, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @devjiwonchoi and the rest of your teammates on Graphite Graphite

@devjiwonchoi devjiwonchoi marked this pull request as ready for review September 11, 2024 16:40
…pp-icons.mdx

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
@huozhi huozhi changed the title docs: remove sizes="any" from favicon.ico docs: update sizes="any" apply strategy to icons Sep 11, 2024
…pp-icons.mdx

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
@devjiwonchoi devjiwonchoi merged commit f05ab48 into canary Sep 11, 2024
53 checks passed
@devjiwonchoi devjiwonchoi deleted the 09-12-docs_remove_sizes_any_from_favicon.ico branch September 11, 2024 17:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Favicon.ico link not using sizes="any"
4 participants