diff --git a/README.md b/README.md
index e56bd8df..229a1823 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,6 @@ You will need to import the following files to use the tech-carbon-estimator:
- main.js
- polyfill.js
-- styles.css
These files can be found under dist/tech-carbon-estimator when developing locally.
diff --git a/angular.json b/angular.json
index e7211ab8..fb31d1e4 100644
--- a/angular.json
+++ b/angular.json
@@ -21,8 +21,23 @@
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico"],
- "styles": ["src/styles.css", "src/sl-styles.css"],
- "scripts": []
+ "styles": [
+ {
+ "input": "src/tce-global-styles.css",
+ "bundleName": "tce-global-styles",
+ "inject": true
+ },
+ {
+ "input": "src/styles.css",
+ "bundleName": "styles",
+ "inject": false
+ },
+ {
+ "input": "src/sl-styles.css",
+ "bundleName": "styles",
+ "inject": false
+ }
+ ]
},
"configurations": {
"production": {
@@ -43,7 +58,23 @@
"npm-package": {
"index": {"input": "src/package-index.html", "output": "index.html"},
"assets": [],
- "styles": ["src/styles.css", "src/package-styles.css"]
+ "styles": [
+ {
+ "input": "src/tce-global-styles.css",
+ "bundleName": "tce-global-styles",
+ "inject": true
+ },
+ {
+ "input": "src/styles.css",
+ "bundleName": "styles",
+ "inject": false
+ },
+ {
+ "input": "src/package-styles.css",
+ "bundleName": "styles",
+ "inject": false
+ }
+ ]
},
"development": {
"optimization": false,
diff --git a/src/app/carbon-estimation-treemap/carbon-estimation-treemap.component.html b/src/app/carbon-estimation-treemap/carbon-estimation-treemap.component.html
index d6d1a08f..343d401b 100644
--- a/src/app/carbon-estimation-treemap/carbon-estimation-treemap.component.html
+++ b/src/app/carbon-estimation-treemap/carbon-estimation-treemap.component.html
@@ -2,26 +2,28 @@
Total Emissions Estimate {{ totalEmissions() }}
-
-
-
-
+ @if(shouldShowUnitsSwitch()) {
+
+
+
+
+ }