Skip to content

Commit

Permalink
fix(icons): fix path exports
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 14, 2024
1 parent 9b7cb50 commit bbb1f51
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/icons/covalent-icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
font-display: block;
}

/* Support mdc icon font variable */
.covalent-icon,
.covalent-icons,
[covalent-icon],
[covalent-icons],
[iconFont='covalent-icons'] {
--mdc-icon-font: 'covalent-icons';
}

[class^='cov-'],
[class*=' cov-'] {
/* use !important to prevent issues with browser extensions that change fonts */
Expand Down
9 changes: 9 additions & 0 deletions libs/icons/covalent-icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
font-display: block;
}

/* Support mdc icon font variable */
.covalent-icon,
.covalent-icons,
[covalent-icon],
[covalent-icons],
[iconFont='covalent-icons'] {
--mdc-icon-font: '#{$icomoon-font-family}';
}

[class^='cov-'],
[class*=' cov-'] {
/* use !important to prevent issues with browser extensions that change fonts */
Expand Down
1 change: 1 addition & 0 deletions libs/icons/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"options": {
"commands": [
"mkdir -p dist/libs/icons",
"cp libs/icons/covalent-icons*.scss dist/libs/icons",
"cp libs/icons/covalent-icons.* dist/libs/icons",
"cp libs/icons/package.json dist/libs/icons"
],
Expand Down

0 comments on commit bbb1f51

Please sign in to comment.