You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 29, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
Margin styles are creating unexpected behaviour in the new Image component
Issue is because of position relative+absolute combination
The structure Image component creates -
<Image styles /> is replaced by
Issue is that the margin along with other styles are passed to the img component which has absolute position so it spoils the designs
To Reproduce
Add margin to the Image component and see the unexpected behaviour
Expected behavior
Expected that the margin is applied to the parent div and not to child
In the case of Image component it should be applied to the Wrapper
Screenshots
Additional context
This can be added in the to do here
#18122
The text was updated successfully, but these errors were encountered: