@sourceloop/search-element 9.0.3 → 9.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -148,22 +148,7 @@ You can also choose to use your own icons by providing classes for icons in the
148
148
 
149
149
  ### Required Global Styles
150
150
 
151
- The search component uses Angular CDK overlays for the dropdown, which require global styles to function properly. **You must import the library's stylesheet in your application:**
152
-
153
- #### Option 1: Import in your `styles.scss`
154
-
155
- ```scss
156
- @import '@sourceloop/search-client/styles';
157
- ```
158
-
159
- #### Option 2: Add to `angular.json`
160
-
161
- ```json
162
- "styles": [
163
- "node_modules/@sourceloop/search-client/styles.scss",
164
- "src/styles.scss"
165
- ]
166
- ```
151
+ The search component uses Angular CDK overlays for the dropdown, which require global styles to function properly.
167
152
 
168
153
  ### Styling and Theming
169
154
 
@@ -186,19 +171,15 @@ sourceloop-search {
186
171
  --search-icon-color: #33333380; /* Color of icons */
187
172
  }
188
173
 
189
- #### Example: Custom Theming
190
-
191
- To customize the search component, add the following to your `styles.scss` (after importing the library styles):
192
-
193
- ```scss
194
- @import '@sourceloop/search-client/styles';
195
-
174
+ ####Example: Custom Theming To customize the search component, add the following
175
+ to your `component.scss` ```scss
176
+
196
177
  // Customize component colors
197
- sourceloop-search {
198
- --search-dropdown-background: #0056b3;
199
- --search-dropdown-text-color: #ffffff;
200
- --search-border-hover: #0056b3;
201
- --search-border-focus: #003d82;
178
+
179
+ :host ::ng-deep sourceloop-search {
180
+ --search-border-hover: #5c26f1 !important;
181
+ --search-border-focus: #5c26f1 !important;
182
+ --search-dropdown-background: #5c26f2 !important;
202
183
  }
203
184
  ````
204
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourceloop/search-element",
3
- "version": "9.0.3",
3
+ "version": "9.0.5",
4
4
  "description": "A global search element for search microservice. ",
5
5
  "main": "./search-element.js",
6
6
  "private": false,
@@ -19,6 +19,6 @@
19
19
  },
20
20
  "author": "Sourcefuse",
21
21
  "license": "MIT",
22
- "hash": "aaf134d1e02bc76d8e7158110c231c475142d2c8f091f831e43bcca14942a1cb",
23
- "gitHead": "83f068c4ac6a36c7b71a89543b75beb5f3a6a17d"
22
+ "hash": "cdfa27b628b5a385adf84891044367c8d9fec53ddfa3059cdffa1a32311239f8",
23
+ "gitHead": "fd641651dcf79824c18a42fee501d83d95d93c95"
24
24
  }