Skip to content

Commit b70420c

Browse files
Add font-display:block to icon-pack @font-face rules
Agent-Logs-Url: https://github.com/MudBlazor/MudBlazor.Icons/sessions/5078d5bb-1efd-41fd-b67a-888a5c12bea3 Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
1 parent 1b1f670 commit b70420c

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/MudBlazor.FontIcons.MaterialIcons/wwwroot/css/font.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,39 @@
33
font-family: 'Material Icons';
44
font-style: normal;
55
font-weight: 400;
6+
font-display: block;
67
src: url(../font/MaterialIcons.woff2) format('woff2');
78
}
89

910
@font-face {
1011
font-family: 'Material Icons Outlined';
1112
font-style: normal;
1213
font-weight: 400;
14+
font-display: block;
1315
src: url(../font/MaterialIconsOutlined.woff2) format('woff2');
1416
}
1517

1618
@font-face {
1719
font-family: 'Material Icons Round';
1820
font-style: normal;
1921
font-weight: 400;
22+
font-display: block;
2023
src: url(../font/MaterialIconsRound.woff2) format('woff2');
2124
}
2225

2326
@font-face {
2427
font-family: 'Material Icons Sharp';
2528
font-style: normal;
2629
font-weight: 400;
30+
font-display: block;
2731
src: url(../font/MaterialIconsSharp.woff2) format('woff2');
2832
}
2933

3034
@font-face {
3135
font-family: 'Material Icons Two Tone';
3236
font-style: normal;
3337
font-weight: 400;
38+
font-display: block;
3439
src: url(../font/MaterialIconsTwoTone.woff2) format('woff2');
3540
}
3641
body {
@@ -115,4 +120,4 @@ body {
115120
direction: ltr;
116121
-moz-font-feature-settings: 'liga';
117122
-moz-osx-font-smoothing: grayscale;
118-
}
123+
}

src/MudBlazor.FontIcons.MaterialIcons/wwwroot/css/font.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MudBlazor.FontIcons.MaterialSymbols/wwwroot/css/font.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
font-family: 'Material Symbols Outlined';
44
font-style: normal;
55
font-weight: 400;
6+
font-display: block;
67
src: url(../font/MaterialSymbolsOutlined.woff2) format('woff2');
78
}
89

910
@font-face {
1011
font-family: 'Material Symbols Rounded';
1112
font-style: normal;
1213
font-weight: 400;
14+
font-display: block;
1315
src: url(../font/MaterialSymbolsRounded.woff2) format('woff2');
1416
}
1517

1618
@font-face {
1719
font-family: 'Material Symbols Sharp';
1820
font-style: normal;
1921
font-weight: 400;
22+
font-display: block;
2023
src: url(../font/MaterialSymbolsSharp.woff2) format('woff2');
2124
}
2225

@@ -66,4 +69,4 @@
6669
direction: ltr;
6770
-moz-font-feature-settings: 'liga';
6871
-moz-osx-font-smoothing: grayscale;
69-
}
72+
}

src/MudBlazor.FontIcons.MaterialSymbols/wwwroot/css/font.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)