FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.53k stars 12.2k forks source link

Feature Request: On the desktop font, make the 'fa-' prefix part of the icon names #17087

Open CKHarwood opened 4 years ago

CKHarwood commented 4 years ago

Is your feature request related to a problem? Please describe. There is no problem; this idea might make the desktop font ligatures easier to use for some people.

Describe the solution you'd like Currently, the invocation for Font Awesome icons in the desktop font (e.g., arrow-right) differs from the invocation used elsewhere (e.g., fa-arrow-right). I would like the desktop font to use the fa- prefix on icon names. Some advantages to requiring the prefix:

  1. Fewer errors when flipping between using Font Awesome in code and when using Font Awesome in design. There is no problem with Font Awesome itself. There is a problem with me, with my muscle memory and context switching. I use the wrong icon "name" in different contexts, and the time I lose to my mistakes outpaces the time I gain not having to type the fa- prefix in design work.

  2. Users bothered by the "icon flickering" as the type their way through one icon name to another icon name could omit the fa- prefix until they are prepared to invoke the icon.

  3. It is clearer in plain text whether a word represents a Font Awesome icon or is just a word in the document. This opens those documents to find-and-replace work, which isn't unusual or particularly dangerous in early document design work.

Downside: This idea is not backwards-compatible with documents using the current font, and I imagine there are not enough desktop font users to merit maintaining two separate forks. This is more an idea for FA 6 or 7.

Describe alternatives you've considered

Additional context N/A

Feature request checklist

tagliala commented 4 years ago

Hi!

Thanks for being part of the Font Awesome Community and thanks for this report.

I can see the point, @robmadole @sensibleworld any thoughts?

robmadole commented 4 years ago

Great idea!

Fewer errors when flipping between using Font Awesome in code and when using Font Awesome in design. There is no problem with Font Awesome itself. There is a problem with me, with my muscle memory and context switching. I use the wrong icon "name" in different contexts, and the time I lose to my mistakes outpaces the time I gain not having to type the fa- prefix in design work.

These are exactly the type of automatic things that we are targeting for FA 6. We want to reduce friction and whenever possible lean into muscle memory. I'm adding this feature request to the 6 list.

Downside: This idea is not backwards-compatible with documents using the current font, and I imagine there are not enough desktop font users to merit maintaining two separate forks. This is more an idea for FA 6 or 7.

I actually think it is backward-compatible. The feature we use to make this happen is called ligatures. You can have multiple ligatures defined. For example, we have times and TIMES. So if you have the caps key on it still works.

That being said, it will be a feature we consider for 6.

tagliala commented 4 years ago

I actually think it is backward-compatible.

Yes, sorry, I forgot about multiple ligatures for each symbol. Removing the label