We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e429f30 commit ebac0caCopy full SHA for ebac0ca
src/bin/css_to_ts/icons.ts
@@ -45,10 +45,14 @@ export function generateIconsRawCssCode(params: {
45
46
return [
47
...usedIcons.map(icon => buildRule(icon, false)),
48
- `@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {`,
49
- ...usedIcons.map(icon => buildRule(icon, true)),
50
- `}`,
51
- ``,
+ ...(usedIcons.length === 0
+ ? []
+ : [
+ `@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {`,
52
+ ...usedIcons.map(icon => buildRule(icon, true)),
53
+ `}`,
54
+ ``
55
+ ]),
56
...(usedIcons.find(({ prefix }) => prefix === "ri-") !== undefined
57
? [
58
`/* This is all the parts of dsfr.css related to icons with .fr-icon- replaced by .ri- so that we can use remixicon as dsfr icons*/`,
0 commit comments