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

Commit d2f73b8

Browse files
authored
fix(angular): move styles import to angular.json (#532)
* fix(angular): move styles import to angular.json * test(angular): update template snapshots
1 parent 5cd6142 commit d2f73b8

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

e2e/__snapshots__/templates.test.js.snap

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
101101
\\"src/assets\\"
102102
],
103103
\\"styles\\": [
104+
\\"node_modules/instantsearch.css/themes/satellite.css\\",
104105
\\"src/styles.css\\"
105106
],
106107
\\"scripts\\": []
@@ -168,6 +169,7 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
168169
\\"src/assets\\"
169170
],
170171
\\"styles\\": [
172+
\\"node_modules/instantsearch.css/themes/satellite.css\\",
171173
\\"src/styles.css\\"
172174
],
173175
\\"scripts\\": []
@@ -536,8 +538,16 @@ import 'zone.js'; // Included with Angular CLI.
536538
537539
exports[`Templates Angular InstantSearch File content: src/styles.css 1`] = `
538540
"/* You can add global styles to this file, and also import other style files */
539-
@import \\"instantsearch.css/themes/reset.css\\";
540-
@import \\"instantsearch.css/themes/satellite.css\\";"
541+
body,
542+
h1 {
543+
margin: 0;
544+
padding: 0;
545+
}
546+
547+
body {
548+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
549+
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
550+
}"
541551
`;
542552
543553
exports[`Templates Angular InstantSearch File content: src/test.ts 1`] = `

src/templates/Angular InstantSearch/angular.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"src/assets"
2828
],
2929
"styles": [
30+
"node_modules/instantsearch.css/themes/satellite.css",
3031
"src/styles.css"
3132
],
3233
"scripts": []
@@ -94,6 +95,7 @@
9495
"src/assets"
9596
],
9697
"styles": [
98+
"node_modules/instantsearch.css/themes/satellite.css",
9799
"src/styles.css"
98100
],
99101
"scripts": []
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
/* You can add global styles to this file, and also import other style files */
2-
@import "instantsearch.css/themes/reset.css";
3-
@import "instantsearch.css/themes/satellite.css";
2+
body,
3+
h1 {
4+
margin: 0;
5+
padding: 0;
6+
}
7+
8+
body {
9+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
10+
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
11+
}

0 commit comments

Comments
 (0)