question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default style prefix

See original GitHub issue

If I use <fa-icon icon="coffee"></fa-icon> it is translated to fas-coffee and I have only far. Is there a default font style option?

If not maybe adding in forRoot config?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
devoto13commented, May 23, 2018

@piernik I think this is good idea and it will be easy to implement in the angular-fontawasome library without affecting core.

3reactions
piernikcommented, May 23, 2018

@robmadole It’s a suggestion then.

I know that this is a solution. But if I want to use only regular font, then my boilerplate is uneccessery. You could introduce something like:

FontAwesomeModule.forRoot({defaultType: 'far'})

Then every <fa-icon icon="coffee"></fa-icon> would be translated to <fa-icon [icon]="['far', 'coffee']"></fa-icon>

Read more comments on GitHub >

github_iconTop Results From Across the Web

prefix - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The prefix descriptor of the @counter-style rule specifies content that ... If not specified, the default value will be "" (an empty string)....
Read more >
Adding a prefix to your style | DX8 Learn and support
This will say Default on it; Within the Selector menu, click on the + icon; Click on Prefix; The Prefix menu will open;...
Read more >
Adding a prefix to your style | Acquia Cohesion Docs
Within the Style editor, click on the Style tree button. This will say Default on it; Within the Selector menu, click on the...
Read more >
Style Properties — Ren'Py Documentation
Style property prefixes allow one to set style properties for the different states ... Text buttons use two styles by default: button for...
Read more >
FontAwesome change default prefix - Stack Overflow
I think it's expected behaviour. Default prefix for FontAwesome is fa and you're changing it to far . So far-square works, but fa ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found