Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageStyle prop is being overriden #28

Open
m4recek opened this issue Apr 9, 2018 · 1 comment
Open

imageStyle prop is being overriden #28

m4recek opened this issue Apr 9, 2018 · 1 comment

Comments

@m4recek
Copy link

m4recek commented Apr 9, 2018

image

Notice that width and display property are not set as they should be from code.

@ethanselzer
Copy link
Owner

@m4recek - To achieve various behavior, react-image-magnify prioritizes the application of some internal styles over those specified in props. Unfortunately this is not documented. You can override the internal prioritization by specifying a class and implementing the !important keyword.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants