Skip to content

Commit

Permalink
Font-awesome fix
Browse files Browse the repository at this point in the history
  • Loading branch information
connelhooley committed Jun 13, 2022
1 parent 92966ea commit 7a80b6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
import "./src/styles/global.css";
import "./src/styles/prism.css";
import "./src/styles/prism.css";

// https://github.com/FortAwesome/react-fontawesome/issues/134
// The following import prevents a Font Awesome icon server-side rendering bug,
// where the icons flash from a very large icon down to a properly sized one:
import "@fortawesome/fontawesome-svg-core/styles.css";
// Prevent fontawesome from adding its CSS since we did it manually above:
import { config } from "@fortawesome/fontawesome-svg-core";
config.autoAddCss = false;

0 comments on commit 7a80b6a

Please sign in to comment.