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

Add style attribute to svg element #63

Closed
nguyenj opened this issue Mar 6, 2015 · 1 comment
Closed

Add style attribute to svg element #63

nguyenj opened this issue Mar 6, 2015 · 1 comment
Assignees
Labels

Comments

@nguyenj
Copy link

nguyenj commented Mar 6, 2015

Thanks in advance for the help.

I just have question on how to add a style inline attribute to the svg element. Something along the lines of style="display:none;"?

@jkphl jkphl self-assigned this Mar 8, 2015
@jkphl jkphl added the wontfix label Mar 8, 2015
@jkphl
Copy link
Collaborator

jkphl commented Mar 8, 2015

Hi @nguyenj,

at present there is no support for altering the sprite SVG, but I might consider adding a post-processing option in a future release.

On the other hand, I assume you are asking because you are using the «defs» or «symbol» sprite and want to inline it into an HTML document, right? Did you consider using the mode.<mode>.inline option (documentation), which basically adds width="0" height="0" style="position:absolute" to hide the sprite in the document? (I can't remember the exact reason, but there were some objections to using display:none ...)

Cheers,
Joschi

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

No branches or pull requests

2 participants