Skip to content

Commit

Permalink
Fix MultiSelect component styles and CSP error (#3841)
Browse files Browse the repository at this point in the history
* Update Web styles and CSP to support MultiSelect component

- Include the MultiSelect module in the CL barrel file of exports
- Import the MultiSelect scss into the Web styles.scss
- Add the necessary sha256 hash to webpack CSP policy to support ngSelect inline styles

* Undo removal of 127.0.0.1 from webpack CSP

(cherry picked from commit 3ed1221)
  • Loading branch information
shane-melton authored and coroiu committed Oct 20, 2022
1 parent 5df22df commit 8a48053
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@import "./variables";
@import "../../../../libs/angular/src/scss/bwicons/styles/style.scss";
@import "../../../../libs/angular/src/scss/icons.scss";
@import "../../../../libs/components/src/multi-select/scss/bw.theme";
@import "@angular/cdk/overlay-prebuilt.css";

//@import "~bootstrap/scss/bootstrap";
Expand Down
1 change: 1 addition & 0 deletions apps/web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ const devServer =
'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='
'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='
'sha256-or0p3LaHetJ4FRq+flVORVFFNsOjQGWrDvX8Jf7ACWg='
'sha256-Oca9ZYU1dwNscIhdNV7tFBsr4oqagBhZx9/p4w8GOcg='
;img-src
'self'
data:
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export * from "./form-field";
export * from "./icon";
export * from "./icon-button";
export * from "./menu";
export * from "./multi-select";
export * from "./dialog";
export * from "./link";
export * from "./tabs";
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/multi-select/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./multi-select.module";

0 comments on commit 8a48053

Please sign in to comment.