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

Rails 6.1.3.1 - icons are not being loaded with Bulma #221

Open
stephenhuey opened this issue Apr 22, 2021 · 1 comment
Open

Rails 6.1.3.1 - icons are not being loaded with Bulma #221

stephenhuey opened this issue Apr 22, 2021 · 1 comment

Comments

@stephenhuey
Copy link

Font Awesome icons are not being loaded when using the Bulma CSS framework although Bulma expects it to work. My app is running on Ruby 3 with Rails 6.1.3.1 and this is in my Gemfile:


gem "bulma-rails", "~> 0.9.1"
gem "font-awesome-rails", "4.7.0.6"

I initially tried font-awesome-rails with no version (the latest version). Here is my application.scss file:


@import "bulma";
@import "font-awesome";

Rubymine says Cannot resolve file 'font-awesome' and I'm really not sure of the cleanest way to get icons showing up in my browser.

Any ideas?

Originally posted by @stephenhuey in #210 (comment)

@brayandiazc
Copy link

@stephenhuey This option works for me, add into your styles file the following line.

*= require font-awesome

It doesn't matter if your file is .css or scss.

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