Cweili / svelte-fa

Tiny FontAwesome component for Svelte
https://cweili.github.io/svelte-fa/
MIT License
398 stars 24 forks source link

Sizing with css #303

Closed boomfly closed 10 months ago

boomfly commented 10 months ago

Is there way to change to change size with css?

Not working example, extending size of svg tag, but not icon itself:

<div class='group'>
  <Fa icon={faArrowRight} class='group-hover:w-10 group-hover:h-10' />
</div>
boomfly commented 10 months ago

Found solution: 'important' flag required, !w-10 !h-10:

Working example:

<div class='group'>
  <Fa icon={faArrowRight} class='group-hover:!w-10 group-hover:!h-10' />
</div>