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
  • Loading branch information
shane-melton authored Oct 19, 2022
1 parent 7aada16 commit 3ed1221
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 @@ -7,6 +7,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 3ed1221

Please sign in to comment.