Skip to content

Commit

Permalink
Merge pull request #1508 from HealthCatalyst/dev
Browse files Browse the repository at this point in the history
Cashmere 10.1.1 (hc-icons patch)
  • Loading branch information
andrew-frueh committed Feb 2, 2021
2 parents 4565a4a + 1571169 commit d886f72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 6 additions & 9 deletions guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class CashmereModule {}

```typescript
@NgModule({
imports: [CashmereModule],
exports: [CommonModule, CashmereModule]
})
export class SharedModule {}
Expand Down Expand Up @@ -80,9 +81,9 @@ In `angular.json`, place references for each font in your project's build target
"builder": "@angular-devkit/build-angular:browser",
"options": {
"styles": [
"../node_modules/font-awesome/css/font-awesome.css",
"../node_modules/notosans-fontface/css/notosans-fontface-allweight.css",
"src/styles.scss"
"./node_modules/font-awesome/css/font-awesome.css",
"./node_modules/notosans-fontface/css/notosans-fontface-allweight.css",
"src/styles.scss" // your app's global stylesheet
]
}
}
Expand All @@ -92,14 +93,10 @@ In `angular.json`, place references for each font in your project's build target
```

### C) *(Optional)* Add Health Catalyst icons (`hcicons`).
If your app needs access to Health Catalyst & healthcare-specific icons, perform the following:
If your app needs access to the [Health Catalyst icon font](/foundations/icons), add the following to your app's global style sheet (`src/styles.scss`):

1. Download `hcicons` [here](
https://cashmere.healthcatalyst.net/foundations/icons) and decompress the .zip file.
2. Move the included `hcicons` folder into your app's /assets directory
3. Import the `hcicons` stylesheet in your app's global style sheet (`src/styles.scss`):
```scss
@import "assets/hcicons/style.scss";
@import "~@healthcatalyst/cashmere/hcicons/hcicons";
```

:::
2 changes: 2 additions & 0 deletions projects/cashmere/src/lib/icon-font/hcicons.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$hc-icons-font-path: "." !default;

@font-face {
font-family: 'hcicons';
src: url('#{$hc-icons-font-path}/hcicons.eot');
Expand Down

0 comments on commit d886f72

Please sign in to comment.