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

Not sure if duo tones are officially supported #967

Closed
fev4 opened this issue Mar 29, 2023 · 3 comments
Closed

Not sure if duo tones are officially supported #967

fev4 opened this issue Mar 29, 2023 · 3 comments

Comments

@fev4
Copy link

fev4 commented Mar 29, 2023

Hey there,

Haven't seen this question asked nor have I seen it directly referenced in the docs. Would it be safe to assume that duo tones are not supported?

@RobBrazier
Copy link
Owner

RobBrazier commented Mar 29, 2023

I don't have fontawesome pro, so I can't test - have you tried using the duotone @fortawesome/fontawesome-* package yet?

@fev4
Copy link
Author

fev4 commented Mar 29, 2023

Here's how I'm using it (example):

<script>
  import Icon from 'svelte-awesome';
  import { faHouse } from '@fortawesome/pro-duotone-svg-icons/faHouse';
  import { faGift } from '@fortawesome/pro-duotone-svg-icons/faGift';
  const options = [
    { name: 'Hogar', value: 'house', icon: 'house', data: faHouse },
    { name: 'Regalo', value: 'gift', icon: 'gift', data: faGift },
  ]
</script>

<div class="radiogroup">
  {#each options as opt}
    <input
      type="radio"
      value={opt.value}
    />
    <label>
      <Icon
        data={opt.data}
        scale={2}
      />
      <span>{opt.name}</span>
    </label>
  {/each}
</div>

This is how it ends up looking:
image

I was hoping it could look like this:
image

Or maybe there's additional setup I need to do?

@RobBrazier
Copy link
Owner

Unfortunately as mentioned I can't test duotone icons as it requires font awesome pro - closing until further requirement for this feature surface

@RobBrazier RobBrazier closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
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