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

custom svg icon does not align in the middle of the selector box #19

Closed
DemersM opened this issue Mar 20, 2015 · 1 comment
Closed

custom svg icon does not align in the middle of the selector box #19

DemersM opened this issue Mar 20, 2015 · 1 comment

Comments

@DemersM
Copy link

DemersM commented Mar 20, 2015

Maybe someone could help with this issue. I am using the bootstrap theme with custom svg icon. It's working, but the icon is not aligned in the middle of the selector box. I have tried with v2.0.0 and master and both are not aligned correctly.

<style>
    .icon-airfield:before {  
        content: url("/media/airfield.svg"); 
        vertical-align:"middle" !important;
    }
</style>

<select id="id_form-0-marker" class="fontIconPicker select form-control" name="form-0-marker">
    <option selected="selected" value="">Please Choose</option>
    <option value="1">icon-airfield</option>
</select>

  $(".fontIconPicker").fontIconPicker({
          source: ['icon-airfield']
  });

Result:
iconpicker

See this jsFiddle: https://jsfiddle.net/5m9wco4b/6/

@swashata
Copy link
Collaborator

Closing since jsfiddle isn't showing any icon right now. I have plans to implement SVG natively #41 ... Feel free to reopen if the issue is still there.

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