Skip to content

Commit f4df252

Browse files
logustraziyoung
authored andcommitted
Icon: Adding font-display to @font-face declaration (#16805)
1 parent 54887e5 commit f4df252

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/theme-chalk/src/common/var.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ $--fill-base: $--color-white !default;
104104
/* Typography
105105
-------------------------- */
106106
$--font-path: 'fonts' !default;
107+
$--font-display: 'auto' !default;
107108
/// fontSize|1|Font Size|0
108109
$--font-size-extra-large: 20px !default;
109110
/// fontSize|1|Font Size|0

packages/theme-chalk/src/icon.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
src: url('#{$--font-path}/element-icons.woff') format('woff'), /* chrome, firefox */
66
url('#{$--font-path}/element-icons.ttf') format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
77
font-weight: normal;
8-
font-style: normal
8+
font-display: $--font-display;
9+
font-style: normal;
910
}
1011

1112
[class^="el-icon-"], [class*=" el-icon-"] {

0 commit comments

Comments
 (0)