Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix(angular): move styles import to angular.json (#532)
Browse files Browse the repository at this point in the history
* fix(angular): move styles import to angular.json
* test(angular): update template snapshots
  • Loading branch information
dhayab authored Oct 21, 2021
1 parent 5cd6142 commit d2f73b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions e2e/__snapshots__/templates.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
\\"src/assets\\"
],
\\"styles\\": [
\\"node_modules/instantsearch.css/themes/satellite.css\\",
\\"src/styles.css\\"
],
\\"scripts\\": []
Expand Down Expand Up @@ -168,6 +169,7 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
\\"src/assets\\"
],
\\"styles\\": [
\\"node_modules/instantsearch.css/themes/satellite.css\\",
\\"src/styles.css\\"
],
\\"scripts\\": []
Expand Down Expand Up @@ -536,8 +538,16 @@ import 'zone.js'; // Included with Angular CLI.
exports[`Templates Angular InstantSearch File content: src/styles.css 1`] = `
"/* You can add global styles to this file, and also import other style files */
@import \\"instantsearch.css/themes/reset.css\\";
@import \\"instantsearch.css/themes/satellite.css\\";"
body,
h1 {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}"
`;
exports[`Templates Angular InstantSearch File content: src/test.ts 1`] = `
Expand Down
2 changes: 2 additions & 0 deletions src/templates/Angular InstantSearch/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"src/assets"
],
"styles": [
"node_modules/instantsearch.css/themes/satellite.css",
"src/styles.css"
],
"scripts": []
Expand Down Expand Up @@ -94,6 +95,7 @@
"src/assets"
],
"styles": [
"node_modules/instantsearch.css/themes/satellite.css",
"src/styles.css"
],
"scripts": []
Expand Down
12 changes: 10 additions & 2 deletions src/templates/Angular InstantSearch/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/* You can add global styles to this file, and also import other style files */
@import "instantsearch.css/themes/reset.css";
@import "instantsearch.css/themes/satellite.css";
body,
h1 {
margin: 0;
padding: 0;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

0 comments on commit d2f73b8

Please sign in to comment.