From 36fa07b64efd4dda92e30518b8dfef8a9ce27ac0 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Wed, 24 Mar 2021 06:11:37 +0800 Subject: [PATCH] Remove `visibility: inherit` from the image component (#23329) This is a follow-up PR of #19052, where `visibility: inherit` was mistakenly added back. It was removed in #23278. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [ ] Make sure the linting passes --- packages/next/client/image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 7ccb722437f9c..2beb54f840559 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -452,7 +452,7 @@ export default function Image({ src={src} decoding="async" sizes={sizes} - style={{ ...imgStyle, visibility: 'inherit' }} + style={imgStyle} className={className} />