rsnext/test/integration/image-component/default/pages/prose.js
Joe Haddad e5b2bd1704
fix(next/image): ignore typography prose styles (#20580)
This fixes `next/image` to properly ignore inherited styles applied to the `img` tag by a parent element.

Image styling should **always** be done by a wrapper element—not to the image itself!

---

Fixes #19817
Fixes #19964
2020-12-29 17:34:11 +00:00

15 lines
365 B
JavaScript

import Image from 'next/image'
import React from 'react'
import * as styles from './prose.module.css'
const Page = () => {
return (
<div className={styles.prose}>
<p>Hello World</p>
<Image id="prose-image" src="/test.jpg" width="400" height="400"></Image>
<p id="stubtext">This is the rotated page</p>
</div>
)
}
export default Page