FortAwesome / font-awesome-sass

Font-Awesome Sass gem for use in Ruby/Rails projects
MIT License
911 stars 265 forks source link

Some icons do not show in Chrome when using the ruby gem in development #201

Closed floydj closed 3 years ago

floydj commented 3 years ago

I have installed font-awesome-sass per the instructions in a Rails 6.1.4.1 application.

In my views, consider the following three links in rails:

link_to icon('fas', 'dollar-sign') + t(:pricing_options_forecasting),
      edit_finalize_screen_path(@finalize_screen),
      id: 'show_options', class: 'btn btn-secondary btn-block'

link_to icon('fas', 'cogs') + t(:quote_sheet_options), '', id: 'show_quote_sheet_options',
            class: 'btn btn-secondary btn-block'

link_to icon('fas', 'user-circle') + t(:customer), '#customer', id: 'show_customer',
            class: 'btn btn-secondary btn-block anchor_only'

All three display the icon properly when using Safari. When using Chrome, the first two links do not display the icon, but the last one does display as expected. Adding the anchor_only class to one of the faulty links has no effect.

In production, the icons show up fine across all browsers - it's only in development I seem to have the problem.

Am I missing something here?