Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit f3bafe9

Browse files
authored
Remove a CSS hack for font awesome icons (#266)
- This was breaking the site from building and removing it does not seem to cause any issues.
1 parent deb8c20 commit f3bafe9

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/components/link/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import React from 'react'
2-
// This ensures that the icon CSS is loaded immediately before attempting to render icons
3-
import '@fortawesome/fontawesome-svg-core/styles.css'
4-
import { config } from '@fortawesome/fontawesome-svg-core'
5-
// Prevent fontawesome from dynamically adding its css since we did it manually above
6-
config.autoAddCss = false
72
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
83
import { faExternalLinkAlt, faFilePdf } from '@fortawesome/free-solid-svg-icons'
94
import { faMeetup } from '@fortawesome/free-brands-svg-icons'

src/components/menu/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import React, { useState } from 'react'
2-
// This ensures that the icon CSS is loaded immediately before attempting to render icons
3-
import '@fortawesome/fontawesome-svg-core/styles.css'
4-
import { config } from '@fortawesome/fontawesome-svg-core'
5-
// Prevent fontawesome from dynamically adding its css since we did it manually above
6-
config.autoAddCss = false
72
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
83
import { faBars, faTimes } from '@fortawesome/free-solid-svg-icons'
94
import { navigate } from 'gatsby'

0 commit comments

Comments
 (0)