Skip to content

Commit af6dd67

Browse files
committed
feat: as we save over 70kB by just faking the medium font, we skip including medium font face
1 parent eff406a commit af6dd67

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

packages/dnb-ui-lib/src/style/core/typography.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ $fonts-path: '../../assets/fonts/' !default;
5757
}
5858

5959
// Font #1. Std Medium (our main fallback font with font weight 600 or more)
60-
@font-face {
61-
font-family: 'Fedra Sans Std';
62-
src: url('#{$fonts-path}/FedraSansStd-Medium.eot');
63-
src: url('#{$fonts-path}/FedraSansStd-Medium.eot?#iefix')
64-
format('embedded-opentype'),
65-
url('#{$fonts-path}/FedraSansStd-Medium.woff') format('woff'),
66-
url('#{$fonts-path}/FedraSansStd-Medium.ttf') format('truetype');
67-
font-weight: 600;
68-
font-style: normal;
69-
}
60+
// As we save over 70kB by just faking the medium font, we skip this
61+
// @font-face {
62+
// font-family: 'Fedra Sans Std';
63+
// src: url('#{$fonts-path}/FedraSansStd-Medium.eot');
64+
// src: url('#{$fonts-path}/FedraSansStd-Medium.eot?#iefix')
65+
// format('embedded-opentype'),
66+
// url('#{$fonts-path}/FedraSansStd-Medium.woff') format('woff'),
67+
// url('#{$fonts-path}/FedraSansStd-Medium.ttf') format('truetype');
68+
// font-weight: 600;
69+
// font-style: normal;
70+
// }
7071

7172
// Font #3. Demi
7273
@font-face {

0 commit comments

Comments
 (0)