@codecademy/gamut-styles 17.3.0-alpha.cab68f.0 → 17.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
  import { webFonts } from './remoteAssets/fonts';
2
+
3
+ /*
4
+ * Only preload woff2 fonts, since woff1 are only included as fallbacks.
5
+ */
2
6
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
7
  export const createFontLinks = () => webFonts.filter(f => f.extensions.includes('woff2')).map(_ref => {
4
8
  let {
@@ -1,4 +1,7 @@
1
1
  export const FONT_ASSET_PATH = `https://www.codecademy.com/gamut`;
2
+
3
+ // woff2 should precede woff so that browsers try woff2 first.
4
+
2
5
  export const webFonts = [{
3
6
  filePath: `${FONT_ASSET_PATH}/apercu-regular-pro`,
4
7
  extensions: ['woff2', 'woff'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.3.0-alpha.cab68f.0",
4
+ "version": "17.3.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/variance": "0.22.0",
@@ -34,5 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "nx build @codecademy/gamut-styles"
36
36
  },
37
- "gitHead": "9fad6d8f7fc6bca87235462f114de98a547917c0"
37
+ "gitHead": "ef0b5fdad86526da00a911367b8fa66d5bce18ec"
38
38
  }