Skip to content

Commit

Permalink
docs: back out some changes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Aug 5, 2021
1 parent d85b371 commit eae616d
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const commonProps = {
htmlAttributes={{ media: "(min-width: 320px)" }}
/>
<Imgix src={src} width={100} />
</Picture>;
</Picture>
```

A warning is displayed when no fallback image is passed. This warning can be disabled in special circumstances. To disable this warning, look in the [warnings section](#warnings).
Expand Down Expand Up @@ -801,22 +801,21 @@ To upgrade to version 8, the following changes should be made.
- Change all usages of `type='picture'` to `<Picture>` and `type='source'` to `<Source>`

<!-- prettier-ignore-start -->

```jsx
// this...
<Imgix type='picture'>
<Imgix type='source' src={src}>
<Imgix type='source' src={src}>
</Imgix>

// becomes...
<Picture>
<Source src={src}>
<Source src={src}>
</Picture>
```

See [Picture support](#picture-support) for more information.
```jsx
// this...
<Imgix type='picture'>
<Imgix type='source' src={src}>
<Imgix type='source' src={src}>
</Imgix>

// becomes...
<Picture>
<Source src={src}>
<Source src={src}>
</Picture>
```

See [Picture support](#picture-support) for more information.
<!-- prettier-ignore-end -->

- Remove all usage of `type='bg'` as it is no longer supported. It was decided that it was too hard to implement this feature consistently. If you would still like to use this feature, please give this issue a thumbs up: [https://github.com/imgix/react-imgix/issues/160](https://github.com/imgix/react-imgix/issues/160) If we get enough requests for this, we will re-implement it.
Expand Down

0 comments on commit eae616d

Please sign in to comment.