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

What is the family abbreviation for the new sharp solid pro icons? #399

Closed
oberocks opened this issue Sep 4, 2022 · 2 comments
Closed

Comments

@oberocks
Copy link

oberocks commented Sep 4, 2022

I'm looking to integrate the new v6.2.0 package into my lib + installation system.

To do so, I'll need to update my lib and installer scripts (which have options for installing FA free and FA pro packages) along with this package.

The thing is, in my implementation of the vue-fontawesome component, the lib is using the :icon="['fas', 'user']" syntax under the hood. I also have FontAwesome utilities for strict Vue component type/string validation, for example.

What I can't seem to find in any docs or issues/pr's though... is what would the abbreviated string be for the new Sharp Solid icons?

For clarity, here's the current array of FA family abbreviations from my lib as of now:

// ./src/validators/ValidFontAwesomeFamilies.ts

const ValidFontAwesomeFamilies = [
    'fab',
    'fad',
    'fal',
    'far',
    'fas',
    'fat',
] as const

// ...

So what would the new Sharp Solid icons abbreviation be (especially considering the fas already in use) ?

As a guess, is it: fass?

Many thanks for the work and awesome new 6.2 stuff!

Cheers 🍻

PS - Please let me know if I need to do something on my end to this issue (especially if this should be a feature req vs a bug).

@mlwilkerson
Copy link
Member

Hi @oberocks, fass should work. That's the IconPrefix that identifies Sharp Solid, which is a combination of family (Sharp) and style (Solid). This shows all values that are valid as an IconPrefix for Font Awesome 6.2.0.

That first array element is just being passed down as the prefix for looking up the icon, so I expect any of these prefixes to be valid.

@oberocks
Copy link
Author

oberocks commented Sep 4, 2022

@mlwilkerson Thank you very much, and I'm super excited to get everything wired up tomorrow morning!

Have a great evening!

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