rsnext/docs
Joe Haddad 9569f5a31a
Deprecate Image unsized property and add layout="fill" (#18562)
This PR deprecates the `unsized` property from NextImage because the property did not accomplish the desired effect.

Users should rely on one of the new layouts instead:

- `<Image layout="fixed" />`
- `<Image layout="intrinsic" />`
- `<Image layout="responsive" />`
- `<Image layout="fill" />`

The `unsized` property will continue to work as-is in production but is deprecated and will throw in dev.

---

### TODO:
- [x] test `layout=fill` in typescript types
- [x] test `layout=fill` render behavior
- [x] test that `unsized` switches to `layout=fill`
- [x] test `next dev` erroring on `unsized`
- [ ] layout docs (tracked in issue #18554)
- [ ] both `layout=fill` and `layout=responsive` use all deviceWidths in the srcset

---

Fixes #18541 

Co-authored-by: Steven <steven@ceriously.com>
2020-10-31 18:34:06 -04:00
..
advanced-features docs: Add description to i18n-routing (#18438) 2020-10-29 11:57:52 +01:00
api-reference Deprecate Image unsized property and add layout="fill" (#18562) 2020-10-31 18:34:06 -04:00
api-routes change anonymous functions to named in docs examples (#17510) 2020-10-05 21:16:47 +00:00
basic-features Update image optimization docs to include blog details (#18401) 2020-10-28 17:29:42 +00:00
migrating (docs) Fixes for "Migrating from Gatsby" doc (#17858) 2020-10-14 03:01:38 +00:00
routing Update link docs to reflect changes on dynamic routing (#16634) 2020-09-07 16:35:30 +00:00
deployment.md Documentation updates (#16503) 2020-08-24 02:23:12 +00:00
faq.md Documentation updates (#16503) 2020-08-24 02:23:12 +00:00
getting-started.md Include yarn instructions (#16565) 2020-08-27 21:27:34 -05:00
manifest.json Add i18n routing docs to manifest (#18264) 2020-10-27 07:12:27 +00:00
upgrading.md Rename exportTrailingSlash to trailingSlash in docs (#17268) 2020-09-22 12:10:10 +02:00