Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(icons): fix path exports #2122

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading