Skip to content

Commit 9e56338

Browse files
committed
feat: remove legacy woff fonts
1 parent a53ffc7 commit 9e56338

6 files changed

Lines changed: 5 additions & 10 deletions

File tree

scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ await esbuild.build({
5050
write: true,
5151
// Prevent esbuild trying to resolve these font files
5252
external: [
53-
'/fonts/MarrSansCondensed-Regular-Web.woff',
5453
'/fonts/MarrSansCondensed-Regular-Web.woff2',
55-
'/fonts/MarrSansCondensed-Bold-Web.woff',
5654
'/fonts/MarrSansCondensed-Bold-Web.woff2',
5755
],
5856
plugins: [
-49.1 KB
Binary file not shown.
-47.3 KB
Binary file not shown.

src/components/canvas/Alert/Alert.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const Variants: StoryFn = () => (
8181
<evg-grid wrap="wrap" direction="column">
8282
{variantOptions.map((variant) => (
8383
<evg-grid-item key={variant} small-mobile="12">
84-
<evg-alert variant={variant}>
84+
<evg-alert variant={variant} role="alert">
8585
<evg-grid wrap="wrap" align-items="center">
8686
<evg-grid-item grow shrink small-mobile="12" large-mobile="auto">
8787
<h4 className="evg-text-size-body-sm evg-text-family-body">

src/styles/fonts.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ $evg-font-path: '/fonts' !default;
77
font-family: 'Marr Sans Cond Web';
88
font-style: normal;
99
font-weight: 400;
10-
src:
11-
url('#{$evg-font-path}/MarrSansCondensed-Regular-Web.woff') format('woff'),
12-
url('#{$evg-font-path}/MarrSansCondensed-Regular-Web.woff2') format('woff2');
10+
src: url('#{$evg-font-path}/MarrSansCondensed-Regular-Web.woff2')
11+
format('woff2');
1312
}
1413

1514
@font-face {
1615
font-display: swap;
1716
font-family: 'Marr Sans Cond Web';
1817
font-style: normal;
1918
font-weight: 700;
20-
src:
21-
url('#{$evg-font-path}/MarrSansCondensed-Bold-Web.woff') format('woff'),
22-
url('#{$evg-font-path}/MarrSansCondensed-Bold-Web.woff2') format('woff2');
19+
src: url('#{$evg-font-path}/MarrSansCondensed-Bold-Web.woff2') format('woff2');
2320
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"emitDeclarationOnly": false,
1111
"experimentalDecorators": true,
1212
"jsx": "react",
13-
"moduleResolution": "node",
13+
"moduleResolution": "bundler",
1414
"noImplicitAny": false,
1515
"outDir": "dist",
1616
"paths": {

0 commit comments

Comments
 (0)