egoist/vue-feather-icons

Icon size? #6

andrewmillen posted onGitHub

How can I change the icon size? Font-size doesn't work, presumably because they're being converted to svgs. Changing the SVG width/height doesn't work either (because it's not changing the viewbox).


Change the width and height with CSS should work.

btw I think we can add a prop to control this.

posted by egoist about 7 years ago

@andrewmillen - here is my helper class to make the SVG adjust to the font size of it's container:

.svg-icon {
    height: 1em;
    margin-top: -4px;
    pointer-events: none;
    vertical-align: middle;
    width: 1em;
}

So now the icon in here <h1>Hello World <ClockIcon class="svg-icon"/></h1> will be the same height as the text.

Hope this helps!

Also, it would be awesome if there was some way to add this by default so I don't have to add a class every time.

posted by calebporzio over 6 years ago

Agreed with @calebporzio, I think this should be the default :)

posted by SiamKreative about 6 years ago

@issuehunt has funded $100.00 to this issue.


posted by issuehunt-app[bot] almost 6 years ago

I've opened a PR in #37, let me know what you think.

posted by atymic over 5 years ago

:tada: This issue has been resolved in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

posted by egoist over 5 years ago

@egoist has rewarded $70.00 to @atymic. See it on IssueHunt

  • :moneybag: Total deposit: $100.00
  • :tada: Repository reward(20%): $20.00
  • :wrench: Service fee(10%): $10.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$100.00
Rewarded

Rewarded pull request

Recent activities

atymic was rewarded by egoist for egoist/vue-feather-icons# 6
over 5 years ago
atymic submitted an output to  egoist/ vue-feather-icons# 6
over 5 years ago