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

Img Default Special Border #19

Closed
Nesrider opened this issue May 1, 2017 · 0 comments
Closed

Img Default Special Border #19

Nesrider opened this issue May 1, 2017 · 0 comments

Comments

@Nesrider
Copy link

Nesrider commented May 1, 2017

So the svg file I loaded is working great. This is more of a small aesthetic/experience issue. I have added the ReactSVG component to one of my pages. However, when the page loads there is a slight blink of a white rectangular border (the page background is black) and then my svg appears and the border disappears. I think this issue has something to do with the fact that the default element, when ReactSVG is mounted, is an img element with no src, and that happens to be an image with a special white border that can't be removed with css. Is there a way to fix this?

UPDATE
I selected the img separately and set the display:none. I'm curious is there a reason for the default img element?

@Nesrider Nesrider closed this as completed May 1, 2017
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

1 participant